QWSEmbedWidget Class | Qt 4.8 (original) (raw)

The QWSEmbedWidget class enables embedded top-level widgets in Qt for Embedded Linux. More...

Header: #include
Since: Qt 4.2
Inherits: QWidget

Public Functions

Reimplemented Protected Functions

Additional Inherited Members

Detailed Description

The QWSEmbedWidget class enables embedded top-level widgets in Qt for Embedded Linux.

Note that this class is only available in Qt for Embedded Linux.

QWSEmbedWidget inherits QWidget and acts as any other widget, but in addition it is capable of embedding another top-level widget.

An example of use is when painting directly onto the screen using the QDirectPainter class. Then the reserved region can be embedded into an instance of the QWSEmbedWidget class, providing for example event handling and size policies for the reserved region.

All that is required to embed a top-level widget is its window ID.

See also Qt for Embedded Linux Architecture.

Member Function Documentation

QWSEmbedWidget::QWSEmbedWidget(WId id, QWidget * parent = 0)

Constructs a widget with the given parent, embedding the widget identified by the given window id.

QWSEmbedWidget::~QWSEmbedWidget()

Destroys this widget.

[virtual protected] void QWSEmbedWidget::changeEvent(QEvent * event)

Reimplemented from QWidget::changeEvent().

[virtual protected] bool QWSEmbedWidget::eventFilter(QObject * object, QEvent * event)

Reimplemented from QObject::eventFilter().

[virtual protected] void QWSEmbedWidget::hideEvent(QHideEvent * event)

Reimplemented from QWidget::hideEvent().

[virtual protected] void QWSEmbedWidget::moveEvent(QMoveEvent * event)

Reimplemented from QWidget::moveEvent().

[virtual protected] void QWSEmbedWidget::resizeEvent(QResizeEvent * event)

Reimplemented from QWidget::resizeEvent().

[virtual protected] void QWSEmbedWidget::showEvent(QShowEvent * event)

Reimplemented from QWidget::showEvent().

© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.