The QWaylandXdgPopupV5 class provides menus for an xdg surface. More...
| Header: | #include <QWaylandXdgPopupV5> |
| qmake: | QT += waylandcompositor |
| Since: | Qt 5.8 |
| Inherits: | QWaylandShellSurfaceTemplate |
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
This class was introduced in Qt 5.8.
| QWaylandXdgPopupV5(QWaylandXdgShellV5 *xdgShell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource) | |
| QWaylandXdgPopupV5() | |
| void | initialize(QWaylandXdgShellV5 *shell, QWaylandSurface *surface, QWaylandSurface *parentSurface, const QPoint &position, const QWaylandResource &resource) |
| QWaylandSurface * | parentSurface() const |
| QPoint | position() const |
| QWaylandXdgShellV5 * | shell() const |
| QWaylandSurface * | surface() const |
| void | parentSurfaceChanged() |
| void | positionChanged() |
| void | shellChanged() |
| void | surfaceChanged() |
| const struct wl_interface * | interface() |
| QWaylandSurfaceRole * | role() |
This class is part of the QWaylandXdgShellV5 extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style menus for an xdg surface.
It corresponds to the Wayland interface xdg_popup.
This property holds the surface associated with the parent of this QWaylandXdgPopupV5.
Access functions:
| QWaylandSurface * | parentSurface() const |
Notifier signal:
| void | parentSurfaceChanged() |
This property holds the location of the upper left corner of the surface relative to the upper left corner of the parent surface, in surface local coordinates.
Access functions:
| QPoint | position() const |
Notifier signal:
| void | positionChanged() |
This property holds the shell associated with this QWaylandXdgPopupV5.
Access functions:
| QWaylandXdgShellV5 * | shell() const |
Notifier signal:
| void | shellChanged() |
This property holds the surface associated with this QWaylandXdgPopupV5.
Access functions:
| QWaylandSurface * | surface() const |
Notifier signal:
| void | surfaceChanged() |
Constructs a QWaylandXdgPopupV5, associating it with xdgShell at the specified position for surface, and initializes it with the given parentSurface and resource.
Constructs a QWaylandXdgPopupV5.
Initializes the QWaylandXdgPopupV5, associating it with the given shell, surface, parentSurface, position, and resource.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
[static] const struct wl_interface *QWaylandXdgPopupV5::interface()
Returns the Wayland interface for the QWaylandXdgPopupV5.
[static] QWaylandSurfaceRole *QWaylandXdgPopupV5::role()
Returns the surface role for the QWaylandXdgPopupV5.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.13/qwaylandxdgpopupv5.html