On this page

QWaylandShell Class

Abstract class for implementing a wayland shell. More...

Header: #include <QWaylandShell>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
In QML: Shell
Inherits: QWaylandCompositorExtension

Public Types

enum FocusPolicy { AutomaticFocus, ManualFocus }

Properties

Public Functions

QWaylandShell::FocusPolicy focusPolicy() const
void setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy)

Signals

Detailed Description

Member Type Documentation

enum QWaylandShell::FocusPolicy

This enum type is used to specify the focus policy for shell surfaces.

ConstantValueDescription
QWaylandShell::AutomaticFocus0Shell surfaces will automatically get keyboard focus when they are created.
QWaylandShell::ManualFocus1The compositor will decide whether shell surfaces should get keyboard focus or not.

Property Documentation

focusPolicy : FocusPolicy

This property holds the focus policy of the QWaylandShell.

Access functions:

QWaylandShell::FocusPolicy focusPolicy() const
void setFocusPolicy(QWaylandShell::FocusPolicy focusPolicy)

Notifier signal:

void focusPolicyChanged()

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