QNativeInterface::QWaylandApplication Struct

Wayland 应用程序的本地接口。更多

头文件: #include <QGuiApplication>
CMake: find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
Qt 6.5

公共函数

virtual wl_compositor *compositor() const = 0
virtual wl_display *display() const = 0
virtual wl_keyboard *keyboard() const = 0
virtual wl_seat *lastInputSeat() const = 0
virtual uint lastInputSerial() const = 0
virtual wl_pointer *pointer() const = 0
virtual wl_seat *seat() const = 0
virtual wl_touch *touch() const = 0

详细说明

通过QGuiApplication::nativeInterface() 访问。

成员函数文档

[pure virtual] wl_compositor *QWaylandApplication::compositor() const

返回应用程序正在使用的 wl_compositor。

[pure virtual] wl_display *QWaylandApplication::display() const

返回应用程序正在使用的 wl_display。

[pure virtual] wl_keyboard *QWaylandApplication::keyboard() const

返回属于seat() 的 wl_keyboard(如果可用)。

[pure virtual] wl_seat *QWaylandApplication::lastInputSeat() const

返回最后一个输入事件发生的座位。

[pure virtual] uint QWaylandApplication::lastInputSerial() const

返回任意座位上最后一个输入事件的序列。

[pure virtual] wl_pointer *QWaylandApplication::pointer() const

返回属于seat() 的 wl_pointer(如果可用)。

[pure virtual] wl_seat *QWaylandApplication::seat() const

返回与默认输入设备相关的席位。

[pure virtual] wl_touch *QWaylandApplication::touch() const

返回属于seat() 的 wl_touch(如果可用)。

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