You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
3.5 KiB
115 lines
3.5 KiB
13 years ago
|
'\" t
|
||
|
.TH QMotif 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
|
||
|
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
|
||
|
.\" license file included in the distribution for a complete license
|
||
|
.\" statement.
|
||
|
.\"
|
||
|
.ad l
|
||
|
.nh
|
||
|
.SH NAME
|
||
|
QMotif \- The basis of the
|
||
|
.SH SYNOPSIS
|
||
|
This class is part of the \fBQt Motif Extension\fR.
|
||
|
.PP
|
||
|
\fC#include <qmotif.h>\fR
|
||
|
.PP
|
||
|
Inherits QEventLoop.
|
||
|
.PP
|
||
|
.SS "Public Members"
|
||
|
.in +1c
|
||
|
.ti -1c
|
||
|
.BI "\fBQMotif\fR ( const char * applicationClass, XtAppContext context = NULL, XrmOptionDescRec * options = 0, int numOptions = 0 )"
|
||
|
.br
|
||
|
.ti -1c
|
||
|
.BI "\fB~QMotif\fR ()"
|
||
|
.br
|
||
|
.ti -1c
|
||
|
.BI "XtAppContext \fBapplicationContext\fR () const"
|
||
|
.br
|
||
|
.in -1c
|
||
|
.SS "Static Public Members"
|
||
|
.in +1c
|
||
|
.ti -1c
|
||
|
.BI "Display * \fBx11Display\fR ()"
|
||
|
.br
|
||
|
.in -1c
|
||
|
.SH DESCRIPTION
|
||
|
This class is defined in the \fBQt Motif Extension\fR, which can be found in the \fCqt/extensions\fR directory. It is not included in the main Qt API.
|
||
|
.PP
|
||
|
The QMotif class provides the basis of the Motif Extension.
|
||
|
.PP
|
||
|
QMotif only provides a few public functions, but it is at the heart of the integration. QMotif is responsible for initializing the Xt toolkit and the Xt application context. It does not open a connection to the X server, that is done by QApplication.
|
||
|
.PP
|
||
|
The only member function in QMotif that depends on an X server connection is QMotif::initialize(). QMotif must be created before QApplication.
|
||
|
.PP
|
||
|
Example usage of QMotif and QApplication:
|
||
|
.PP
|
||
|
.nf
|
||
|
.br
|
||
|
static char *resources[] = {
|
||
|
.br
|
||
|
...
|
||
|
.br
|
||
|
};
|
||
|
.br
|
||
|
.br
|
||
|
int main(int argc, char **argv)
|
||
|
.br
|
||
|
{
|
||
|
.br
|
||
|
QMotif integrator( "AppClass" );
|
||
|
.br
|
||
|
XtAppSetFallbackResources( integrator.applicationContext(),
|
||
|
.br
|
||
|
resources );
|
||
|
.br
|
||
|
QApplication app( argc, argv );
|
||
|
.br
|
||
|
.br
|
||
|
...
|
||
|
.br
|
||
|
.br
|
||
|
return app.exec();
|
||
|
.br
|
||
|
}
|
||
|
.br
|
||
|
.fi
|
||
|
.SH MEMBER FUNCTION DOCUMENTATION
|
||
|
.SH "QMotif::QMotif ( const char * applicationClass, XtAppContext context = NULL, XrmOptionDescRec * options = 0, int numOptions = 0 )"
|
||
|
Creates QMotif, which allows Qt and Xt/Motif integration.
|
||
|
.PP
|
||
|
If \fIcontext\fR is 0, QMotif creates a default application context itself. The context is accessible through applicationContext().
|
||
|
.PP
|
||
|
All arguments passed to this function (\fIapplicationClass\fR, \fIoptions\fR and \fInumOptions\fR) are used to call XtDisplayInitialize() after QApplication has been constructed.
|
||
|
.SH "QMotif::~QMotif ()"
|
||
|
Destroys QMotif.
|
||
|
.SH "XtAppContext QMotif::applicationContext () const"
|
||
|
Returns the application context.
|
||
|
.SH "Display * QMotif::x11Display ()\fC [static]\fR"
|
||
|
Returns the X11 display connection used by the Qt Motif Extension.
|
||
|
|
||
|
.SH "SEE ALSO"
|
||
|
.BR http://doc.trolltech.com/qmotif.html
|
||
|
.BR http://www.trolltech.com/faq/tech.html
|
||
|
.SH COPYRIGHT
|
||
|
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
|
||
|
license file included in the distribution for a complete license
|
||
|
statement.
|
||
|
.SH AUTHOR
|
||
|
Generated automatically from the source code.
|
||
|
.SH BUGS
|
||
|
If you find a bug in Qt, please report it as described in
|
||
|
.BR http://doc.trolltech.com/bughowto.html .
|
||
|
Good bug reports help us to help you. Thank you.
|
||
|
.P
|
||
|
The definitive Qt documentation is provided in HTML format; it is
|
||
|
located at $QTDIR/doc/html and can be read using Qt Assistant or with
|
||
|
a web browser. This man page is provided as a convenience for those
|
||
|
users who prefer man pages, although this format is not officially
|
||
|
supported by Trolltech.
|
||
|
.P
|
||
|
If you find errors in this manual page, please report them to
|
||
|
.BR qt-bugs@trolltech.com .
|
||
|
Please include the name of the manual page (qmotif.3qt) and the Qt
|
||
|
version (3.3.8).
|