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

公共函数

int *connection() const
int *display() const

详细说明

通过QGuiApplication::nativeInterface() 访问。

成员函数文档

int *QX11Application::connection() const

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

另请参见 display()。

int *QX11Application::display() const

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

另请参见 connection()。

© 2025 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.