返回介绍

QXtApplication Class

发布于 2019-10-04 15:04:19 字数 3088 浏览 1170 评论 0 收藏 0

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

This class is part of the Qt Xt/Motif Extension. More...

#include <qxt.h>

Inherits QApplication.

List of all member functions.

Public Members

  • QXtApplication ( int&argc, char**argv, constchar*appclass = 0, XrmOptionDescRec*options = 0, intnum_options = 0, constchar**resources = 0 )
  • QXtApplication ( Display*display, HANDLEvisual = 0, HANDLEcolormap = 0 )
  • QXtApplication ( Display*display, intargc, char**argv, HANDLEvisual = 0, HANDLEcolormap = 0 )
  • ~QXtApplication ()

Detailed 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, constchar*appclass = 0, XrmOptionDescRec*options = 0, intnum_options = 0, constchar**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, HANDLEvisual = 0, HANDLEcolormap = 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, intargc, char**argv, HANDLEvisual = 0, HANDLEcolormap = 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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文