QWaylandXdgPopupV5 Class

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

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

该类已过时。 提供它是为使旧源代码能继续工作。强烈建议不要在新代码中使用它。

特性

公共函数

QWaylandXdgPopupV5 ()
QWaylandXdgPopupV5 (QWaylandXdgShellV5 * xdgShell , QWaylandSurface * surface , QWaylandSurface * parentSurface , const QPoint & position , const QWaylandResource & resource )
QQmlListProperty<QObject> data ()
void initialize (QWaylandXdgShellV5 * shell , QWaylandSurface * surface , QWaylandSurface * parentSurface , const QPoint & position , const QWaylandResource & resource )
QWaylandSurface * parentSurface () const
QPoint position () const
void sendPopupDone ()
QWaylandXdgShellV5 * shell () const
QWaylandSurface * surface () const

重实现公共函数

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

信号

void parentSurfaceChanged ()
void positionChanged ()
void shellChanged ()
void surfaceChanged ()

静态公共成员

void appendFunction (QQmlListProperty<QObject> * list , QObject * object )
QObject * atFunction (QQmlListProperty<QObject> * list , int index )
void clearFunction (QQmlListProperty<QObject> * list )
int countFunction (QQmlListProperty<QObject> * list )
QWaylandXdgPopupV5 * fromResource (::wl_resource * resource )
const struct wl_interface * interface ()
QByteArray interfaceName ()
QWaylandSurfaceRole * role ()
const QMetaObject staticMetaObject

额外继承成员

详细描述

The QWaylandXdgPopupV5 class provides menus for an xdg surface.

此类属于 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 位置 () 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 ()

构造 QWaylandXdgPopupV5 .

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

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

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

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

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

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

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

QQmlListProperty < QObject > QWaylandXdgPopupV5:: data ()

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

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] QByteArray QWaylandXdgPopupV5:: interfaceName ()

[static] QWaylandSurfaceRole *QWaylandXdgPopupV5:: role ()

Returns the surface role for the QWaylandXdgPopupV5 .

void QWaylandXdgPopupV5:: sendPopupDone ()

注意: 此函数可以被援引,通过元对象系统和从 QML。见 Q_INVOKABLE .

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