QWaylandKeyboard Class
Die Klasse „QWaylandKeyboard“ repräsentiert ein Tastaturgerät. Mehr...
| Header: | #include <QWaylandKeyboard> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| Erbt von: | QWaylandObject |
Eigenschaften
- repeatDelay : quint32
- repeatRate : quint32
Ö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) |
Ausführliche Beschreibung
Diese Klasse ermöglicht den Zugriff auf das Tastaturgerät in einem „ QWaylandSeat “. Sie entspricht der Wayland-Schnittstelle „wl_keyboard“.
Dokumentation zu den Eigenschaften
repeatDelay : quint32
Diese Eigenschaft gibt die Verzögerung bis zum Beginn von Tastenwiederholungsereignissen an, ausgedrückt in Millisekunden.
Zugriffsfunktionen:
| quint32 | repeatDelay() const |
| void | setRepeatDelay(quint32 delay) |
Benachrichtigungssignal:
| void | repeatDelayChanged(quint32 repeatDelay) |
repeatRate : quint32
Diese Eigenschaft gibt die Rate an, mit der die Tastatur Tastenwiederholungsereignisse erzeugt, ausgedrückt in Zeichen pro Sekunde.
Zugriffsfunktionen:
| quint32 | repeatRate() const |
| void | setRepeatRate(quint32 rate) |
Benachrichtigungssignal:
| void | repeatRateChanged(quint32 repeatRate) |
Dokumentation der Member-Funktionen
QWaylandKeyboard::QWaylandKeyboard(QWaylandSeat *seat, QObject *parent = nullptr)
Erstellt ein `QWaylandKeyboard` für die angegebene ` seat ` und mit der angegebenen ` parent`.
QWaylandCompositor *QWaylandKeyboard::compositor() const
Gibt den Compositor für diese „ 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 Wiederholungsrate zurück.
Hinweis: Getter -Funktion für die Eigenschaft „repeatRate“.
Siehe auch „ setRepeatRate()“.
QWaylandSeat *QWaylandKeyboard::seat() const
Gibt den Sitzplatz für diese „ 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 Tastendruck-Ereignis mit dem Tasten code an den aktuellen Tastaturfokus.
[virtual] void QWaylandKeyboard::sendKeyReleaseEvent(uint code)
Sendet ein Tastenloslass-Ereignis mit der Tasten 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)
Stellt die Wiederholungsverzögerung auf „ delay “ ein.
Hinweis: Setter -Funktion für die Eigenschaft ` repeatDelay`.
Siehe auch ` repeatDelay()`.
void QWaylandKeyboard::setRepeatRate(quint32 rate)
Stellt die Wiederholungsrate auf „ rate “ ein.
Hinweis: Setter -Funktion für die Eigenschaft „ repeatRate “.
Siehe auch ` repeatRate()`.
© 2026 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.