QWaylandXdgSurfaceV6 Class

The QWaylandXdgSurfaceV6 class provides desktop-style compositor-specific features to an xdg surface. More...

Header: #include <QWaylandXdgSurfaceV6>
qmake: QT += waylandcompositor
Since: Qt 5.10
Inherits: QWaylandShellSurfaceTemplate


  • popup : QWaylandXdgPopupV6* const
  • shell : QWaylandXdgShellV6* const
  • surface : QWaylandSurface* const

Public Functions

QWaylandXdgSurfaceV6(QWaylandXdgShellV6 *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)
QQmlListProperty<QObject> data()
void initialize(QWaylandXdgShellV6 *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)
QWaylandXdgPopupV6 *popup() const
QWaylandXdgShellV6 *shell() const
QWaylandSurface *surface() const
QWaylandXdgToplevelV6 *toplevel() const
QRect windowGeometry() const

Reimplemented Public Functions

virtual QWaylandQuickShellIntegration *createIntegration(QWaylandQuickShellSurfaceItem *item) override
virtual Qt::WindowType windowType() const override


Static Public Members

void appendFunction(QQmlListProperty<QObject> *list, QObject *object)
QObject *atFunction(QQmlListProperty<QObject> *list, int index)
void clearFunction(QQmlListProperty<QObject> *list)
int countFunction(QQmlListProperty<QObject> *list)
QWaylandXdgSurfaceV6 *fromResource(::wl_resource *resource)
const struct wl_interface *interface()
const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QWaylandXdgSurfaceV6 class provides desktop-style compositor-specific features to an xdg surface.

This class is part of the QWaylandXdgShellV6 extension and provides a way to extend the functionality of an existing QWaylandSurface with features specific to desktop-style compositors, such as resizing and moving the surface.

It corresponds to the Wayland interface zxdg_surface_v6.

Property Documentation

This property holds the properties and methods that are specific to the popup QWaylandXdgSurfaceV6.

Access functions:

QWaylandXdgPopupV6 *popup() const

Notifier signal:

void popupCreated()

See also QWaylandXdgSurfaceV6::toplevel and QWaylandXdgShellV6::popupCreated.

shell : QWaylandXdgShellV6* const

This property holds the shell associated with this QWaylandXdgSurfaceV6.

Access functions:

QWaylandXdgShellV6 *shell() const

Notifier signal:

void shellChanged()

surface : QWaylandSurface* const

This property holds the surface associated with this QWaylandXdgSurfaceV6.

Access functions:

QWaylandSurface *surface() const

Notifier signal:

void surfaceChanged()

toplevel : QWaylandXdgToplevelV6* const

This property holds the properties and methods that are specific to the toplevel QWaylandXdgSurfaceV6.

Access functions:

QWaylandXdgToplevelV6 *toplevel() const

Notifier signal:

void toplevelCreated()

See also QWaylandXdgSurfaceV6::popup and QWaylandXdgShellV6::toplevelCreated.

windowGeometry : const QRect

This property holds the window geometry of the QWaylandXdgSurfaceV6. The window geometry describes the window's visible bounds from the user's perspective. The geometry includes title bars and borders if drawn by the client, but excludes drop shadows. It is meant to be used for aligning and tiling windows.

Access functions:

QRect windowGeometry() const

Notifier signal:

void windowGeometryChanged()

Member Function Documentation


Constructs a QWaylandXdgSurfaceV6.

QWaylandXdgSurfaceV6::QWaylandXdgSurfaceV6(QWaylandXdgShellV6 *xdgShell, QWaylandSurface *surface, const QWaylandResource &res)

Constructs a QWaylandXdgSurfaceV6 for surface and initializes it with the given xdgShell, surface, and resource res.

[static] void QWaylandXdgSurfaceV6::appendFunction(QQmlListProperty<QObject> *list, QObject *object)

[static] QObject *QWaylandXdgSurfaceV6::atFunction(QQmlListProperty<QObject> *list, int index)

[static] void QWaylandXdgSurfaceV6::clearFunction(QQmlListProperty<QObject> *list)

[static] int QWaylandXdgSurfaceV6::countFunction(QQmlListProperty<QObject> *list)

[override virtual] QWaylandQuickShellIntegration *QWaylandXdgSurfaceV6::createIntegration(QWaylandQuickShellSurfaceItem *item)

QQmlListProperty<QObject> QWaylandXdgSurfaceV6::data()

[static] QWaylandXdgSurfaceV6 *QWaylandXdgSurfaceV6::fromResource(::wl_resource *resource)

Returns the QWaylandXdgSurfaceV6 corresponding to the resource.

void QWaylandXdgSurfaceV6::initialize(QWaylandXdgShellV6 *xdgShell, QWaylandSurface *surface, const QWaylandResource &resource)

Initializes the QWaylandXdgSurfaceV6, associating it with the given xdgShell, surface and resource.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

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

Returns the Wayland interface for the QWaylandXdgSurfaceV6.

[override virtual] Qt::WindowType QWaylandXdgSurfaceV6::windowType() const

© 2020 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.