QWaylandKeyboard Class

Die Klasse QWaylandKeyboard repräsentiert ein Tastaturgerät. Mehr...

Kopfzeile: #include <QWaylandKeyboard>
CMake: find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor)
target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor)
qmake: QT += waylandcompositor
Vererbt: QWaylandObject

Öffentliche Funktionen

QWaylandKeyboard(QWaylandSeat *seat, QObject *parent = nullptr)
QWaylandCompositor *compositor() const
QWaylandSurface *focus() const
QWaylandClient *focusClient() const
quint32 repeatDelay() const
quint32 repeatRate() const
QWaylandSeat *seat() const
virtual void sendKeyModifiers(QWaylandClient *client, uint32_t serial)
virtual void sendKeyPressEvent(uint code)
virtual void sendKeyReleaseEvent(uint code)
virtual void setFocus(QWaylandSurface *surface)
void setRepeatDelay(quint32 delay)
void setRepeatRate(quint32 rate)

Signale

void repeatDelayChanged(quint32 repeatDelay)
void repeatRateChanged(quint32 repeatRate)

Detaillierte Beschreibung

Diese Klasse ermöglicht den Zugriff auf das Tastaturgerät in einem QWaylandSeat. Sie entspricht der Wayland-Schnittstelle wl_keyboard.

Dokumentation der Mitgliedsfunktionen

QWaylandKeyboard::QWaylandKeyboard(QWaylandSeat *seat, QObject *parent = nullptr)

Konstruiert ein QWaylandKeyboard für die angegebene seat und mit der angegebenen parent.

QWaylandCompositor *QWaylandKeyboard::compositor() const

Gibt den Compositor für diesen QWaylandKeyboard zurück.

QWaylandSurface *QWaylandKeyboard::focus() const

Gibt die aktuell fokussierte Oberfläche zurück.

Siehe auch setFocus().

QWaylandClient *QWaylandKeyboard::focusClient() const

Gibt den Client zurück, der derzeit den Tastaturfokus hat.

quint32 QWaylandKeyboard::repeatDelay() const

Gibt die aktuelle Wiederholungsverzögerung zurück.

Hinweis: Getter-Funktion für die Eigenschaft repeatDelay.

Siehe auch setRepeatDelay().

quint32 QWaylandKeyboard::repeatRate() const

Gibt die aktuelle Wiederholrate zurück.

Hinweis: Getter-Funktion für die Eigenschaft repeatRate.

Siehe auch setRepeatRate().

QWaylandSeat *QWaylandKeyboard::seat() const

Gibt den Sitz für diesen QWaylandKeyboard zurück.

[virtual] void QWaylandKeyboard::sendKeyModifiers(QWaylandClient *client, uint32_t serial)

Sendet die aktuellen Tastenmodifikatoren an client mit dem angegebenen serial.

[virtual] void QWaylandKeyboard::sendKeyPressEvent(uint code)

Sendet ein Tastendruckereignis mit der Taste code an den aktuellen Tastaturfokus.

[virtual] void QWaylandKeyboard::sendKeyReleaseEvent(uint code)

Sendet ein Ereignis zum Loslassen einer Taste mit der Taste code an den aktuellen Tastaturfokus.

[virtual] void QWaylandKeyboard::setFocus(QWaylandSurface *surface)

Setzt den aktuellen Fokus auf surface.

Siehe auch focus().

void QWaylandKeyboard::setRepeatDelay(quint32 delay)

Setzt die Wiederholungsverzögerung auf delay.

Hinweis: Setter-Funktion für die Eigenschaft repeatDelay.

Siehe auch repeatDelay().

void QWaylandKeyboard::setRepeatRate(quint32 rate)

Setzt die Wiederholrate auf rate.

Hinweis: Setter-Funktion für die Eigenschaft repeatRate.

Siehe auch repeatRate().

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