1QMotif(3qt) QMotif(3qt)
2
3
4
6 QMotif - The basis of the
7
9 This class is part of the Qt Motif Extension.
10
11 #include <qmotif.h>
12
13 Inherits QEventLoop.
14
15 Public Members
16 QMotif ( const char * applicationClass, XtAppContext context = NULL,
17 XrmOptionDescRec * options = 0, int numOptions = 0 )
18 ~QMotif ()
19 XtAppContext applicationContext () const
20
21 Static Public Members
22 Display * x11Display ()
23
25 This class is defined in the Qt Motif Extension, which can be found in
26 the qt/extensions directory. It is not included in the main Qt API.
27
28 The QMotif class provides the basis of the Motif Extension.
29
30 QMotif only provides a few public functions, but it is at the heart of
31 the integration. QMotif is responsible for initializing the Xt toolkit
32 and the Xt application context. It does not open a connection to the X
33 server, that is done by QApplication.
34
35 The only member function in QMotif that depends on an X server
36 connection is QMotif::initialize(). QMotif must be created before
37 QApplication.
38
39 Example usage of QMotif and QApplication:
40
41 static char *resources[] = {
42 ...
43 };
44 int main(int argc, char **argv)
45 {
46 QMotif integrator( "AppClass" );
47 XtAppSetFallbackResources( integrator.applicationContext(),
48 resources );
49 QApplication app( argc, argv );
50 ...
51 return app.exec();
52 }
53
56 XrmOptionDescRec * options = 0, int numOptions = 0 )
57 Creates QMotif, which allows Qt and Xt/Motif integration.
58
59 If context is 0, QMotif creates a default application context itself.
60 The context is accessible through applicationContext().
61
62 All arguments passed to this function (applicationClass, options and
63 numOptions) are used to call XtDisplayInitialize() after QApplication
64 has been constructed.
65
67 Destroys QMotif.
68
70 Returns the application context.
71
73 Returns the X11 display connection used by the Qt Motif Extension.
74
75
77 http://doc.trolltech.com/qmotif.html
78 http://www.trolltech.com/faq/tech.html
79
81 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
82 license file included in the distribution for a complete license
83 statement.
84
86 Generated automatically from the source code.
87
89 If you find a bug in Qt, please report it as described in
90 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
91 help you. Thank you.
92
93 The definitive Qt documentation is provided in HTML format; it is
94 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
95 web browser. This man page is provided as a convenience for those users
96 who prefer man pages, although this format is not officially supported
97 by Trolltech.
98
99 If you find errors in this manual page, please report them to qt-
100 bugs@trolltech.com. Please include the name of the manual page
101 (qmotif.3qt) and the Qt version (3.3.8).
102
103
104
105Trolltech AS 2 February 2007 QMotif(3qt)