Provides an extension for desktop-style user interfaces. 更多...
import 语句: | import QtWayland.Compositor 1.0 |
Since: | Qt 5.8 |
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.0 WaylandCompositor { XdgShellV5 { // ... } }
This signal is emitted when the client has responded to a ping event with serial serial .
另请参阅 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.
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 .
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.
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.
Sends a ping event to the client . If the client replies to the event, the pong signal will be emitted.