XdgShellV5 QML Type

Provides an extension for desktop-style user interfaces. 更多...

import 语句: import QtWayland.Compositor 1.15
Since: Qt 5.8

信号

方法

  • void ping (WaylandClient client )

详细描述

The XdgShellV5 extension provides a way to associate an XdgSurfaceV5 with a regular Wayland surface. Using the xdg_surface interface, the client can request that the surface is resized, moved, and so on.

XdgShellV5 corresponds to the Wayland interface xdg_shell .

To provide the functionality of the shell extension in a compositor, create an instance of the XdgShellV5 component and add it as a child of the compositor:

import QtWayland.Compositor 1.15
WaylandCompositor {
    XdgShellV5 {
        // ...
    }
}
					

信号文档编制

void pong ( int serial )

This signal is emitted when the client has responded to a ping event with serial serial .

注意: 相应处理程序是 onPong .

另请参阅 QtWaylandCompositor::XdgShellV5::ping() .

void xdgPopupCreated ( XdgPopupV5 xdgPopup )

This signal is emitted when the client has created an xdg_popup . A common use case is to let the handler of this signal instantiate a ShellSurfaceItem or WaylandQuickItem for displaying xdgPopup QtQuick scene.

注意: 相应处理程序是 onXdgPopupCreated .

void xdgPopupRequested ( WaylandSurface surface , WaylandSurface parent , WaylandSeat seat , point position , WaylandResource resource )

This signal is emitted when the client has requested an xdg_popup to be associated with surface . The handler for this signal may create the xdg popup for resource and initialize it within the scope of the signal emission. Otherwise an XdgPopupV5 will be created automatically.

The seat wl_seat that caused the popup to be opened.

position is the desired position of the popup, relative to the parent .

注意: 相应处理程序是 onXdgPopupRequested .

void xdgSurfaceCreated ( XdgSurfaceV5 xdgSurface )

This signal is emitted when the client has created an xdg_surface . A common use case is to let the handler of this signal instantiate a ShellSurfaceItem or WaylandQuickItem for displaying xdgSurface QtQuick scene.

注意: 相应处理程序是 onXdgSurfaceCreated .

void xdgSurfaceRequested ( WaylandSurface surface , WaylandResource resource )

This signal is emitted when the client has requested an xdg_surface to be associated with surface . The handler for this signal may create the shell surface for resource and initialize it within the scope of the signal emission. Otherwise an XdgSurfaceV5 will be created automatically.

注意: 相应处理程序是 onXdgSurfaceRequested .

方法文档编制

void ping ( WaylandClient client )

Sends a ping event to the client . If the client replies to the event, the pong signal will be emitted.