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 |
詳細説明
通常、このクラスを直接使用する必要はありません。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.