QXtApplication(3qt)

NAME
QXtApplication - Facilitates the mixing of Xt/Motif and Qt widgets

SYNOPSIS
#include <qxt.h>

Inherits QApplication.

  Public Members
QXtApplication ( int & argc, char ** argv, const char * appclass = 0, XrmOptionDescRec * options = 0, int num_options = 0, const char ** resources = 0 )
QXtApplication ( Display * display, HANDLE visual = 0, HANDLE colormap = 0 )
QXtApplication ( Display * display, int argc, char ** argv, HANDLE visual = 0, HANDLE colormap = 0 )
~QXtApplication ()

DESCRIPTION
This class is defined in the Qt Xt/Motif Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API.

The QXtApplication class facilitates the mixing of Xt/Motif and Qt widgets.

The QXtApplication and QXtWidget classes allow old Xt or Motif widgets to be used in new Qt applications. They also allow Qt widgets to be used in primarily Xt/Motif applications. The facility is intended to aid migration from Xt/Motif to the more comfortable Qt system.

MEMBER FUNCTION DOCUMENTATION

QXtApplication::QXtApplication ( int & argc, char ** argv, const char * appclass = 0, XrmOptionDescRec * options = 0, int num_options = 0, const char ** resources = 0 )
Constructs a QApplication and initializes the Xt toolkit. The appclass, options, num_options, and resources arguments are passed on to XtAppSetFallbackResources and XtDisplayInitialize.

Use this constructor when writing a new Qt application which needs to use some existing Xt/Motif widgets.

The argc and argv arguments are passed to the QApplication constructor.

QXtApplication::QXtApplication ( Display * display, HANDLE visual = 0, HANDLE colormap = 0 )
Constructs a QApplication from the display of an already-initialized Xt application. If visual and colormap are non-zero, the application will use those as the default Visual and Colormap contexts.

Use this constructor when introducing Qt widgets into an existing Xt/Motif application.

QXtApplication::QXtApplication ( Display * display, int argc, char ** argv, HANDLE visual = 0, HANDLE colormap = 0 )
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Constructs a QApplication from the display of an already-initialized Xt application. If visual and colormap are non-zero, the application will use those as the default Visual and Colormap contexts.

Use this constructor when introducing Qt widgets into an existing Xt/Motif application.

The argc and argv arguments are passed to the QApplication constructor.

QXtApplication::~QXtApplication ()
Destructs the application. Does not close the Xt toolkit.

SEE ALSO
http://doc.trolltech.com/qxtapplication.html http://www.trolltech.com/faq/tech.html

COPYRIGHT
Copyright 1992-2001 Trolltech AS, http://www.trolltech.com. See the license file included in the distribution for a complete license statement.

AUTHOR
Generated automatically from the source code.

BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you.

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.

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qxtapplication.3qt) and the Qt version (3.0.4).