KeyEvent QML Type

QKeyEvent C++ 클래스용 QML 프론트엔드. 더 보기...

Import Statement: import Qt3D.Input 2.8
In C++: QKeyEvent
Status: Deprecated

속성

방법

상세 설명

KeyEvent QML 유형은 직접 생성할 수 없습니다. 이 유형의 객체는 KeyboardHandler 에서 신호 매개변수로 사용됩니다.

속성 문서

accepted : bool

수락을 true 으로 설정하면 키 이벤트가 항목의 부모로 전파되지 않습니다.

일반적으로 항목이 키 이벤트에 대해 작동하는 경우 수락해야 상위 항목도 동일한 이벤트에 응답하지 않습니다.


count : int [read-only]

이 이벤트에 관련된 키의 수를 보유합니다. text 이 비어 있지 않으면 단순히 문자열의 길이입니다.


isAutoRepeat : bool [read-only]

이 이벤트가 자동 반복 키에서 발생했는지 여부를 보유합니다.


key : int [read-only]

이 속성은 눌렀거나 놓았던 키의 코드를 보유합니다.

키보드 코드 목록은 Qt.Key 을 참조하세요.

KeyEvent.key참조하세요 .


modifiers : int [read-only]

이 속성은 이벤트가 발생하기 직전에 존재했던 키보드 수정자 플래그를 보유합니다.

KeyEvent.modifiers도 참조하세요 .


nativeScanCode : quint32 [read-only]

이 속성에는 눌렀던 키의 기본 스캔 코드가 포함되어 있습니다. QKeyEvent 에서 변경되지 않은 상태로 전달됩니다.

QKeyEvent::nativeScanCode()도 참조하세요 .


text : string [read-only]

이 속성은 키가 생성한 유니코드 텍스트를 보유합니다. 시프트, 컨트롤, Alt, 메타 등의 수정자 키를 누르거나 놓는 경우 반환되는 텍스트는 빈 문자열일 수 있습니다. 이러한 경우 key 은 유효한 값을 포함합니다.


메서드 문서

bool matches(StandardKey key)

키 이벤트가 주어진 표준 key 과 일치하면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

QKeySequence::StandardKey참조하세요 .


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