QWaylandXdgPopupV5 Class

The QWaylandXdgPopupV5 class provides menus for an xdg surface. 更多...

頭: #include <QWaylandXdgPopupV5>
qmake: QT += waylandcompositor
Since: Qt 5.8
繼承: QWaylandShellSurfaceTemplate

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

該類在 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 ()

詳細描述

此類屬於 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.

特性文檔編製

parentSurface : QWaylandSurface * const

This property holds the surface associated with the parent of this QWaylandXdgPopupV5 .

訪問函數:

QWaylandSurface * parentSurface () const

通知程序信號:

void parentSurfaceChanged ()

position : const QPoint

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.

訪問函數:

QPoint position () const

通知程序信號:

void positionChanged ()

shell : QWaylandXdgShellV5 * const

This property holds the shell associated with this QWaylandXdgPopupV5 .

訪問函數:

QWaylandXdgShellV5 * shell () const

通知程序信號:

void shellChanged ()

surface : QWaylandSurface * const

This property holds the surface associated with this QWaylandXdgPopupV5 .

訪問函數:

QWaylandSurface * surface () const

通知程序信號:

void surfaceChanged ()

成員函數文檔編製

QWaylandXdgPopupV5:: QWaylandXdgPopupV5 ( QWaylandXdgShellV5 * xdgShell , QWaylandSurface * surface , QWaylandSurface * parentSurface , const QPoint & position , const QWaylandResource & resource )

Constructs a QWaylandXdgPopupV5, associating it with xdgShell at the specified position for surface , and initializes it with the given parentSurface and resource .

QWaylandXdgPopupV5:: QWaylandXdgPopupV5 ()

Constructs a QWaylandXdgPopupV5.

void QWaylandXdgPopupV5:: initialize ( QWaylandXdgShellV5 * shell , QWaylandSurface * surface , QWaylandSurface * parentSurface , const QPoint & position , const QWaylandResource & resource )

初始化 QWaylandXdgPopupV5 , associating it with the given shell , surface , parentSurface , position ,和 resource .

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .

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

返迴 Wayland 接口為 QWaylandXdgPopupV5 .

[static] QWaylandSurfaceRole *QWaylandXdgPopupV5:: role ()

Returns the surface role for the QWaylandXdgPopupV5 .