On this page

QNativeInterface::QX11Application Struct

Native interface to an X11 application. More...

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

Public Functions

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 &)

Detailed Description

Accessed through QGuiApplication::nativeInterface().

Member Function Documentation

[constexpr noexcept default] QX11Application::QX11Application()

Default-constructs an instance of QX11Application.

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

Copy-constructs an instance of QX11Application. This function is deleted.

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

Move-constructs an instance of QX11Application. This function is deleted.

int *QX11Application::connection() const

Returns the X connection of the application, for use with XCB.

See also display().

int *QX11Application::display() const

Returns the X display of the application, for use with Xlib.

See also connection().

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

Move-assigns other to this QX11Application instance. This function is deleted.

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

Copy-assigns other to this QX11Application instance. This function is deleted.

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