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