QX11Application Struct

struct QNativeInterface::QX11Application

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(QNativeInterface::QX11Application &&)
QX11Application(const QNativeInterface::QX11Application &)
QNativeInterface::QX11Application &operator=(QNativeInterface::QX11Application &&)
QNativeInterface::QX11Application &operator=(const QNativeInterface::QX11Application &)
int *connection() const
int *display() const

Protected Functions

virtual ~QX11Application()
bool hasTypeInfo()

Detailed Description

Accessed through QGuiApplication::nativeInterface().

Member Function Documentation

QX11Application::QX11Application(QNativeInterface::QX11Application &&)

Default constructs an instance of QX11Application.

QX11Application::QX11Application(const QNativeInterface::QX11Application &)

Default constructs an instance of QX11Application.


Default constructs an instance of QX11Application.

QNativeInterface::QX11Application &QX11Application::operator=(QNativeInterface::QX11Application &&)

Move-assignment operator.

QNativeInterface::QX11Application &QX11Application::operator=(const QNativeInterface::QX11Application &)

Copy-assignment operator.

[virtual protected] QX11Application::~QX11Application()

Destroys the instance of QX11Application. The destructor is virtual.

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().

Related Non-Members

template <typename> bool hasTypeInfo()

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