Home |
The QtXtWidget class allows mixing of Xt/Motif and Qt widgets. More...
#include <QtXtWidget>
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Inherits QWidget.
The QtXtWidget class allows mixing of Xt/Motif and Qt widgets.
QtXtWidget acts as a bridge between Xt and Qt. When utilizing old Xt widgets, it can be a QWidget based on a Xt widget class. When including Qt widgets in an existing Xt/Motif application, it can be a special Xt widget class that is a QWidget. See the constructors for the different behaviors.
This class is unsupported and has many known problems and limitations. It is provided only to keep existing source working; it should not be used in new code. These problems will not be fixed in future releases.
Below is an incomplete list of known issues:
Constructs a QtXtWidget with the given name and parent of the special Xt widget class known as "QWidget" to the resource manager.
Use this constructor to utilize Qt widgets in an Xt/Motif application. The QtXtWidget is a QWidget, so you can create subwidgets, layouts, and use other Qt features.
If the managed parameter is true and parent is not null, XtManageChild is used to manage the child; otherwise it is unmanaged.
Constructs a QtXtWidget of the given widget_class called name.
Use this constructor to utilize Xt or Motif widgets in a Qt application. The QtXtWidget looks and behaves like an Xt widget, but can be used like any QWidget.
Note that Xt requires that the top level Xt widget is a shell. This means that if parent is a QtXtWidget, any kind of widget_class can be used. However, if there is no parent, or the parent is just a normal QWidget, widget_class should be something like topLevelShellWidgetClass.
The args and num_args arguments are passed on to XtCreateWidget.
If managed is true and parent is not null, XtManageChild is used to manage the child; otherwise it is unmanaged.
Destroys the QtXtWidget.
Activates the widget. Implements a degree of focus handling for Xt widgets.
Returns true if the widget is the active window; otherwise returns false.
Reimplemented to produce the Xt effect of getting focus when the mouse enters the widget. The event is passed in e.
Reimplemented from QWidget.
Returns the underlying Xt widget.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Solutions |