QWaylandXdgShellV6 Class
The QWaylandXdgShellV6 class is an extension for desktop-style user interfaces. More...
Header: | #include <QWaylandXdgShellV6> |
qmake: | QT += waylandcompositor |
Since: | Qt 5.10 |
Inherits: | QWaylandShellTemplate |
This class was introduced in Qt 5.10.
Public Functions
QWaylandXdgShellV6(QWaylandCompositor *compositor) | |
QWaylandXdgShellV6() |
Reimplemented Public Functions
virtual void | initialize() override |
- 2 public functions inherited from QWaylandShell
- 30 public functions inherited from QObject
Public Slots
uint | ping(QWaylandClient *client) |
- 1 public slot inherited from QObject
Signals
void | pong(uint serial) |
void | popupCreated(QWaylandXdgPopupV6 *popup, QWaylandXdgSurfaceV6 *xdgSurface) |
void | toplevelCreated(QWaylandXdgToplevelV6 *toplevel, QWaylandXdgSurfaceV6 *xdgSurface) |
void | xdgSurfaceCreated(QWaylandXdgSurfaceV6 *xdgSurface) |
- 1 signal inherited from QWaylandShell
- 2 signals inherited from QObject
Static Public Members
const struct wl_interface * | interface() |
- 9 static public members inherited from QObject
Related Non-Members
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 1 property inherited from QWaylandShell
- 1 property inherited from QObject
- 9 protected functions inherited from QObject
Detailed Description
The QWaylandXdgShellV6 extension provides a way to associate a QWaylandXdgToplevelV6 or QWaylandXdgPopupV6 with a regular Wayland surface. Using the QWaylandXdgToplevelV6 interface, the client can request that the surface is resized, moved, and so on.
QWaylandXdgShellV6 corresponds to the Wayland interface, zxdg_shell_v6
.
Member Function Documentation
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.
See also 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 in a 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 in a 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
. Note that xdgSurface is not mapped, i.e. according to the xdg-shell
protocol it should not be displayed, until it has received a role object.
See also toplevelCreated() and popupCreated().
[override virtual]
void QWaylandXdgShellV6::initialize()
Initializes the shell extension.
[static]
const struct wl_interface *QWaylandXdgShellV6::interface()
Returns the Wayland interface for the QWaylandXdgShellV6.