QWaylandIviApplication Class
QWaylandIviApplication 类是一个用于嵌入式风格用户界面的扩展。更多内容...
| 头文件: | #include <QWaylandIviApplication> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| 在 QML 中: | IviApplication |
| 继承自: | QWaylandCompositorExtensionTemplate |
公共函数
| QWaylandIviApplication() | |
| QWaylandIviApplication(QWaylandCompositor *compositor) |
重新实现的公共函数
| virtual void | initialize() override |
信号
| void | iviSurfaceCreated(QWaylandIviSurface *iviSurface) |
| void | iviSurfaceRequested(QWaylandSurface *surface, uint iviId, const QWaylandResource &resource) |
静态公共成员
| const struct wl_interface * | interface() |
详细说明
QWaylandIviApplication 扩展提供了一种将QWaylandIviSurface 与常规 Wayland 表面关联起来的方法。通过使用QWaylandIviSurface 接口,客户端可以通过提供一个 ivi 标识符来识别自身,而合成器可以请求客户端调整大小。
QWaylandIviApplication 对应于 Wayland 的ivi_application 接口。
成员函数文档
QWaylandIviApplication::QWaylandIviApplication()
创建一个 QWaylandIviApplication 对象。
QWaylandIviApplication::QWaylandIviApplication(QWaylandCompositor *compositor)
根据提供的compositor ,构建一个QWaylandIviApplication对象。
[override virtual] void QWaylandIviApplication::initialize()
重写了:QWaylandCompositorExtension::initialize()。
初始化 Shell 扩展。
[static] const struct wl_interface *QWaylandIviApplication::interface()
返回QWaylandIviApplication 的Wayland接口。
[signal] void QWaylandIviApplication::iviSurfaceCreated(QWaylandIviSurface *iviSurface)
当创建了IviSurface (iviSurface )时,会触发此信号。
[signal] void QWaylandIviApplication::iviSurfaceRequested(QWaylandSurface *surface, uint iviId, const QWaylandResource &resource)
当客户端请求将ivi_surface 与surface (其标识为iviId )关联时,会发出此信号。该信号的处理程序应在信号发出期间为resource 创建ivi表面并对其进行初始化。如果未创建ivi表面,则会自动创建一个默认的ivi表面。
© 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.