QShortcutEvent Class
QShortcutEvent 클래스는 사용자가 키 조합을 누를 때 생성되는 이벤트를 제공합니다. 더 보기...
헤더: | #include <QShortcutEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
상속합니다: | QEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- 사용되지 않는 멤버
- QShortcutEvent는 이벤트 클래스의 일부입니다.
공용 함수
(since 6.5) | QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false) |
bool | isAmbiguous() const |
const QKeySequence & | key() const |
상세 설명
일반적으로 이 클래스를 직접 사용할 필요는 없으며, QShortcut 에서 바로 가기 키를 처리하는 상위 레벨 인터페이스를 제공합니다.
QShortcut도 참조하십시오 .
멤버 함수 문서
[since 6.5]
QShortcutEvent::QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false)
QShortcut shortcut 과 연결된 지정된 key 누르기에 대한 단축키 이벤트를 구성합니다.
ambiguous 는 동일한 키 시퀀스에 대해 QShortcut 가 두 개 이상 있는지 여부를 지정합니다.
이 함수는 Qt 6.5에 도입되었습니다.
bool QShortcutEvent::isAmbiguous() const
이벤트를 트리거한 키 시퀀스가 모호한 경우 true
를 반환합니다.
QShortcut::activatedAmbiguously()도 참조하세요 .
const QKeySequence &QShortcutEvent::key() const
이벤트를 트리거한 키 시퀀스를 반환합니다.
© 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.