QWaylandXdgShell Class
The QWaylandXdgShell class is an extension for desktop-style user interfaces. More...
Header: | #include <QWaylandXdgShell> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.12 |
This class was introduced in Qt 5.12.
Public Functions
void | pong(int serial) |
void | popupCreated(QWaylandXdgPopup *popup, QWaylandXdgSurface *xdgSurface) |
void | toplevelCreated(QWaylandXdgToplevel *toplevel, QWaylandXdgSurface *xdgSurface) |
Detailed Description
The QWaylandXdgShell extension provides a way to associate a QWaylandXdgToplevel or QWaylandXdgPopup with a regular Wayland surface. Using the QWaylandXdgToplevel interface, the client can request that the surface is resized, moved, and so on.
QWaylandXdgShell corresponds to the Wayland interface, xdg_shell
.
Member Function Documentation
void QWaylandXdgShell::pong(int serial)
This signal is emitted when the client has responded to a ping event with serial, serial.
See also QWaylandXdgShell::ping().
void QWaylandXdgShell::popupCreated(QWaylandXdgPopup *popup, QWaylandXdgSurface *xdgSurface)
This signal is emitted when the client has created a xdg_popup
. A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or QWaylandQuickItem for displaying popup in a QtQuick scene.
xdgSurface is the XdgSurface popup is the role object for.
void QWaylandXdgShell::toplevelCreated(QWaylandXdgToplevel *toplevel, QWaylandXdgSurface *xdgSurface)
This signal is emitted when the client has created a xdg_toplevel
. A common use case is to let the handler of this signal instantiate a QWaylandShellSurfaceItem or QWaylandQuickItem for displaying toplevel in a QtQuick scene.
xdgSurface is the XdgSurface toplevel is the role object for.