QWaylandXdgShellV6 Class

The QWaylandXdgShellV6 class is an extension for desktop-style user interfaces. 更多...

頭: #include <QWaylandXdgShellV6>
qmake: QT += waylandcompositor
Since: Qt 5.10
繼承: QWaylandShellTemplate

該類已過時。 提供它是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它。

該類在 Qt 5.10 引入。

公共函數

QWaylandXdgShellV6 (QWaylandCompositor * compositor )
QWaylandXdgShellV6 ()

重實現公共函數

virtual void initialize () override

公共槽

uint ping (QWaylandClient * client )

信號

void pong (uint serial )
void popupCreated (QWaylandXdgPopupV6 * popup , QWaylandXdgSurfaceV6 * xdgSurface )
void toplevelCreated (QWaylandXdgToplevelV6 * toplevel , QWaylandXdgSurfaceV6 * xdgSurface )
void xdgSurfaceCreated (QWaylandXdgSurfaceV6 * xdgSurface )

靜態公共成員

const struct wl_interface * interface ()

詳細描述

The QWaylandXdgShellV6 extension provides a way to associate a QWaylandXdgToplevelV6 or QWaylandXdgPopupV6 與常規 Waylnd 錶麵。使用 QWaylandXdgToplevelV6 interface, the client can request that the surface is resized, moved, and so on.

QWaylandXdgShellV6 corresponds to the Wayland interface, zxdg_shell_v6 .

成員函數文檔編製

QWaylandXdgShellV6:: QWaylandXdgShellV6 ( QWaylandCompositor * compositor )

Constructs a QWaylandXdgShellV6 object for the provided compositor .

QWaylandXdgShellV6:: QWaylandXdgShellV6 ()

Constructs a QWaylandXdgShellV6 object.

[slot] uint QWaylandXdgShellV6:: ping ( QWaylandClient * client )

Sends a ping event to client . If the client replies to the event the pong signal will be emitted.

[signal] void QWaylandXdgShellV6:: pong ( uint serial )

This signal is emitted when the client has responded to a ping event with serial, serial .

另請參閱 QWaylandXdgShellV6::ping ().

[signal] void QWaylandXdgShellV6:: popupCreated ( QWaylandXdgPopupV6 * popup , QWaylandXdgSurfaceV6 * xdgSurface )

This signal is emitted when the client has created a zxdg_popup_v6 . A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or QWaylandQuickItem for displaying popup QtQuick scene.

xdgSurface is the XdgSurfaceV6 popup is the role object for.

[signal] void QWaylandXdgShellV6:: toplevelCreated ( QWaylandXdgToplevelV6 * toplevel , QWaylandXdgSurfaceV6 * xdgSurface )

This signal is emitted when the client has created a zxdg_toplevel_v6 . A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or QWaylandQuickItem for displaying toplevel QtQuick scene.

xdgSurface is the XdgSurfaceV6 toplevel is the role object for.

[signal] void QWaylandXdgShellV6:: xdgSurfaceCreated ( QWaylandXdgSurfaceV6 * xdgSurface )

This signal is emitted when the client has created a zxdg_surface_v6 。注意, xdgSurface is not mapped, i.e. according to the xdg-shell protocol it should not be displayed, until it has received a role object.

另請參閱 toplevelCreated () 和 popupCreated ().

[override virtual] void QWaylandXdgShellV6:: initialize ()

初始化 Shell 擴展。

[static] const struct wl_interface *QWaylandXdgShellV6:: interface ()

返迴 Wayland 接口為 QWaylandXdgShellV6 .