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 |
保護された関数
| 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 のインスタンスをムーブコンストラクタで生成します。この関数は削除されています。
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.