1QMotifWidget(3qt) QMotifWidget(3qt)
2
3
4
6 QMotifWidget - The QWidget API for Xt/Motif widgets
7
9 This class is part of the Qt Motif Extension.
10
11 #include <qmotifwidget.h>
12
13 Inherits QWidget.
14
15 Public Members
16 QMotifWidget ( QWidget * parent, WidgetClass widgetclass, ArgList args
17 = NULL, Cardinal argcount = 0, const char * name = 0, WFlags flags
18 = 0 )
19 virtual ~QMotifWidget ()
20 Widget motifWidget () const
21
22 Protected Members
23 virtual bool x11Event ( XEvent * event )
24
26 This class is defined in the Qt Motif Extension, which can be found in
27 the qt/extensions directory. It is not included in the main Qt API.
28
29 The QMotifWidget class provides the QWidget API for Xt/Motif widgets.
30
31 QMotifWidget exists to provide a QWidget that can act as a parent for
32 any Xt/Motif widget. Since the QMotifWidget is a proper QWidget, it can
33 be used as a top-level widget (e.g. 0 parent) or as a child of any
34 other QWidget. Note: Since QMotifWidget acts as a parent for Xt/Motif
35 widgets, you should not create QWidgets with a QMotifWidget parent.
36
37 An Xt/Motif widget with a top-level QMotifWidget parent can begin using
38 the standard Qt dialogs and custom QDialogs while keeping the main
39 Xt/Motif interface of the application. Using a QMotifWidget as the
40 parent for the various QDialogs will ensure that modality and stacking
41 works properly throughout the entire application.
42
43 Applications moving to Qt may have custom Xt/Motif widgets that will
44 take time to rewrite with Qt. Such applications can use these custom
45 widgets as QMotifWidget with QWidget parents. This allows the
46 application's interface to be replaced gradually.
47
48 Warning: QMotifWidget uses the X11 window ID of the Motif widget
49 directly, instead of creating its own. Because ot this,
50 QWidget::reparent() will not work. This includes the functions
51 QWidget::showFullScreen() and QWidget::showNormal(), which use
52 QWidget::reparent().
53
56 ArgList args = NULL, Cardinal argcount = 0, const char * name = 0,
57 WFlags flags = 0 )
58 Creates a QMotifWidget of the given widgetclass as a child of parent,
59 with the name name and widget flags flags.
60
61 The args and argcount arguments are passed on to XtCreateWidget.
62
63 The motifWidget() function returns the resulting Xt/Motif widget. This
64 widget can be used as a parent for any other Xt/Motif widget.
65
66 If parent is a QMotifWidget, the Xt/Motif widget is created as a child
67 of the parent's motifWidget(). If \ parent is 0 or a normal
68 QWidget, the Xt/Motif widget is created as a child of a special
69 TopLevelShell widget. Xt/Motif widgets can use this special
70 TopLevelShell parent as the parent for existing Xt/Motif dialogs or
71 QMotifDialogs.
72
74 Destroys the QMotifWidget. The special TopLevelShell is also destroyed,
75 if it was created during construction.
76
78 Returns the embedded Xt/Motif widget. If a Shell widget was created by
79 the constructor, you can access it with XtParent().
80
81
83 http://doc.trolltech.com/qmotifwidget.html
84 http://www.trolltech.com/faq/tech.html
85
87 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
88 license file included in the distribution for a complete license
89 statement.
90
92 Generated automatically from the source code.
93
95 If you find a bug in Qt, please report it as described in
96 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
97 help you. Thank you.
98
99 The definitive Qt documentation is provided in HTML format; it is
100 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
101 web browser. This man page is provided as a convenience for those users
102 who prefer man pages, although this format is not officially supported
103 by Trolltech.
104
105 If you find errors in this manual page, please report them to qt-
106 bugs@trolltech.com. Please include the name of the manual page
107 (qmotifwidget.3qt) and the Qt version (3.3.8).
108
109
110
111Trolltech AS 2 February 2007 QMotifWidget(3qt)