- Qt 6.12
- Qt GUI
- C++ Classes
- QX11Application
- Qt 6.12.0 Reference Documentation

# 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

- List of all members, including inherited members
- QX11Application is part of Native Interfaces.

## Public Functions

| QX11Application()
| QX11Application(const QNativeInterface::QX11Application &)
| QX11Application(QNativeInterface::QX11Application &&)
virtual xcb_connection_t * | connection() const = 0
virtual Display * | display() const = 0
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.

### `[pure virtual]` xcb_connection_t *QX11Application::connection() const

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

See also display().

### `[pure virtual]` Display *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.