Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QMotifWidget class provides the QWidget API for Xt/Motif widgets. More...
This class is part of the Qt Motif Extension.
#include <qmotifwidget.h>
Inherits QWidget.
This class is defined in the Qt Motif Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API.
The QMotifWidget class provides the QWidget API for Xt/Motif widgets.
QMotifWidget exists to provide a QWidget that can act as a parent for any Xt/Motif widget. Since the QMotifWidget is a proper QWidget, it an be used as a top-level widget (e.g. 0 parent) or as a child of any other QWidget.
An Xt/Motif widget with a top-level QMotifWidget parent can begin using the standard Qt dialogs and custom QDialogs while keeping the main Xt/Motif interface of the application. Using a QMotifWidget as the parent for the various QDialogs will ensure that modality and stacking works properly throughout the entire application.
Applications moving to Qt may have custom Xt/Motif widgets that will take time to rewrite with Qt. Such applications can use these custom widgets as QMotifWidget with QWidget parents. This allows the application's interface to be replaced gradually.
The args and argcount arguments are passed on to XtCreateWidget.
The motifWidget() function returns the resulting Xt/Motif widget. This widget can be used as a parent for any other Xt/Motif widget.
If parent is a QMotifWidget, the Xt/Motif widget is created as a child of the parent's motifWidget(). If \ parent is 0 or a normal QWidget, the Xt/Motif widget is created as a child of a special ApplicationShell widget. Xt/Motif widgets can use this special ApplicationShell parent as the parent for existing Xt/Motif dialogs or QMotifDialogs.
This file is part of the Qt toolkit. Copyright © 1995-2002 Trolltech. All Rights Reserved.
Copyright © 2002 Trolltech | Trademarks | Qt version 3.1.1
|