本页内容

QNativeInterface::QX11Application Struct

X11 应用程序的原生接口。更多内容...

标题: #include <QGuiApplication>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
自: Qt 6.2

公共函数

QX11Application()
QX11Application(const QNativeInterface::QX11Application &)
QX11Application(QNativeInterface::QX11Application &&)
int *connection() const
int *display() const
QNativeInterface::QX11Application &operator=(QNativeInterface::QX11Application &&)
QNativeInterface::QX11Application &operator=(const QNativeInterface::QX11Application &)

详细说明

通过QGuiApplication::nativeInterface()访问。

成员函数文档

[constexpr noexcept default] QX11Application::QX11Application()

默认——构造一个QX11Application 实例。

[delete] QX11Application::QX11Application(const QNativeInterface::QX11Application &)

复制并构造一个QX11Application 的实例。该函数已被删除。

[delete] QX11Application::QX11Application(QNativeInterface::QX11Application &&)

通过移动构造生成一个QX11Application 的实例。该函数已被删除。

int *QX11Application::connection() const

返回应用程序的 X 连接,供 XCB 使用。

另请参阅 display()。

int *QX11Application::display() const

返回应用程序的 X 显示,供 Xlib 使用。

另请参阅 connection()。

[delete] QNativeInterface::QX11Application &QX11Application::operator=(QNativeInterface::QX11Application &&)

将other 按移动赋值给此QX11Application 实例。该函数已被删除。

[delete] QNativeInterface::QX11Application &QX11Application::operator=(const QNativeInterface::QX11Application &)

将other 复制赋值给此QX11Application 实例。该函数已被删除。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.