QWaylandQuickShellSurfaceItem Class
QWaylandQuickShellSurfaceItem 类提供了一个Qt Quick 项目,该项目代表QWaylandShellSurface... 更多...
Header: | #include <QWaylandQuickShellSurfaceItem> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
qmake: | QT += waylandcompositor |
在 QML 中: | ShellSurfaceItem |
继承: | QWaylandQuickItem |
属性
|
|
公共功能
QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr) | |
bool | autoCreatePopupItems() |
QQuickItem * | moveItem() const |
void | setAutoCreatePopupItems(bool enabled) |
void | setMoveItem(QQuickItem *moveItem) |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
void | setStaysOnBottom(bool on) |
void | setStaysOnTop(bool on) |
QWaylandShellSurface * | shellSurface() const |
bool | staysOnBottom() const |
bool | staysOnTop() const |
信号
void | autoCreatePopupItemsChanged() |
void | moveItemChanged() |
void | shellSurfaceChanged() |
void | staysOnBottomChanged() |
void | staysOnTopChanged() |
另请参阅 QWaylandQuickItem,QWaylandWlShellSurface, 和QWaylandIviSurface 。
属性文档
autoCreatePopupItems : bool
此属性保留是否应自动创建弹出窗口的 QWaylandQuickShellSurfaceItems(QWaylandQuickShellSurfaceItems),这些弹出窗口是此项目管理的外壳表面的父对象。
访问功能:
bool | autoCreatePopupItems() |
void | setAutoCreatePopupItems(bool enabled) |
Notifier 信号:
void | autoCreatePopupItemsChanged() |
moveItem : QQuickItem*
此属性保存此QWaylandQuickShellSurfaceItem 的移动项目。当客户要求移动、最大化或调整QWaylandShellSurface 的大小等时,该项目将被移动。该属性在实施服务器端装饰时非常有用。
访问功能:
QQuickItem * | moveItem() const |
void | setMoveItem(QQuickItem *moveItem) |
Notifier 信号:
void | moveItemChanged() |
shellSurface : QWaylandShellSurface*
此属性保存此QWaylandQuickShellSurfaceItem 渲染的QWaylandShellSurface 。它可以是 QWaylandXdgSurfaceV5、QWaylandWlShellSurface 或QWaylandIviSurface ,具体取决于使用的 shell 协议。
访问功能:
QWaylandShellSurface * | shellSurface() const |
void | setShellSurface(QWaylandShellSurface *shellSurface) |
Notifier 信号:
void | shellSurfaceChanged() |
staysOnBottom : bool
请将此物品置于其他 Wayland 表面之上
访问功能:
bool | staysOnBottom() const |
void | setStaysOnBottom(bool on) |
通知信号
void | staysOnBottomChanged() |
staysOnTop : bool
请将此物品置于其他 Wayland 表面之上
访问功能:
bool | staysOnTop() const |
void | setStaysOnTop(bool on) |
Notifier 信号:
void | staysOnTopChanged() |
成员函数文档
QWaylandQuickShellSurfaceItem::QWaylandQuickShellSurfaceItem(QQuickItem *parent = nullptr)
使用给定的parent 构建 QWaylandQuickWlShellSurfaceItem。
© 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.