QWaylandKeyboard Class
QWaylandKeyboard 클래스는 키보드 장치를 나타냅니다. 더 보기...
| 헤더: | #include <QWaylandKeyboard> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS WaylandCompositor) target_link_libraries(mytarget PRIVATE Qt6::WaylandCompositor) |
| qmake: | QT += waylandcompositor |
| 상속: | QWaylandObject |
속성
- repeatDelay : quint32
- repeatRate : quint32
공개 함수
| 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) |
신호
| void | repeatDelayChanged(quint32 repeatDelay) |
| void | repeatRateChanged(quint32 repeatRate) |
상세 설명
이 클래스는 QWaylandSeat 에서 키보드 장치에 대한 액세스를 제공합니다. 이는 Wayland 인터페이스인 wl_keyboard에 해당합니다.
속성 설명
repeatDelay : quint32
이 속성은 키 반복 이벤트가 시작되기까지의 지연 시간을 밀리초 단위로 나타냅니다.
액세스 함수:
| quint32 | repeatDelay() const |
| void | setRepeatDelay(quint32 delay) |
알림 신호:
| void | repeatDelayChanged(quint32 repeatDelay) |
repeatRate : quint32
이 속성은 키보드에서 키 반복 이벤트가 생성되는 빈도를 초당 문자 수로 나타냅니다.
액세스 함수:
| quint32 | repeatRate() const |
| void | setRepeatRate(quint32 rate) |
알림 신호:
| void | repeatRateChanged(quint32 repeatRate) |
멤버 함수 설명서
QWaylandKeyboard::QWaylandKeyboard(QWaylandSeat *seat, QObject *parent = nullptr)
지정된 ` seat ` 및 ` parent`을 사용하여 `QWaylandKeyboard` 객체를 생성합니다.
QWaylandCompositor *QWaylandKeyboard::compositor() const
이 ` QWaylandKeyboard`에 해당하는 컴포지터를 반환합니다.
QWaylandSurface *QWaylandKeyboard::focus() const
현재 포커스가 맞춰진 서페이스를 반환합니다.
setFocus()도 참조하십시오 .
QWaylandClient *QWaylandKeyboard::focusClient() const
현재 키보드 포커스가 있는 클라이언트를 반환합니다.
quint32 QWaylandKeyboard::repeatDelay() const
현재 반복 지연 시간을 반환합니다.
참고: repeatDelay 속성의게터 함수입니다.
setRepeatDelay()도 참조하십시오 .
quint32 QWaylandKeyboard::repeatRate() const
현재 반복 속도를 반환합니다.
참고: repeatRate 속성에 대한게터 함수입니다.
setRepeatRate()도 참조하십시오 .
QWaylandSeat *QWaylandKeyboard::seat() const
이 QWaylandKeyboard 에 대한 좌석을 반환합니다.
[virtual] void QWaylandKeyboard::sendKeyModifiers(QWaylandClient *client, uint32_t serial)
현재 키 수정자를 지정된 ` serial`와 함께 ` client `로 전송합니다.
[virtual] void QWaylandKeyboard::sendKeyPressEvent(uint code)
현재 키보드 포커스가 있는 위치로 키 code 에 해당하는 키 입력 이벤트를 전송합니다.
[virtual] void QWaylandKeyboard::sendKeyReleaseEvent(uint code)
현재 키보드 포커스가 있는 키보드에 키 code 를 포함한 키 해제 이벤트를 전송합니다.
[virtual] void QWaylandKeyboard::setFocus(QWaylandSurface *surface)
현재 포커스를 surface 로 설정합니다.
focus()도 참조하십시오 .
void QWaylandKeyboard::setRepeatDelay(quint32 delay)
반복 지연 시간을 delay 로 설정합니다.
참고: repeatDelay 속성에 대한세터 함수입니다.
repeatDelay()도 참조하십시오 .
void QWaylandKeyboard::setRepeatRate(quint32 rate)
반복 빈도를 rate 로 설정합니다.
참고: repeatRate 속성에 대한세터 함수입니다.
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.