QShortcutEvent Class
Die Klasse „QShortcutEvent“ stellt ein Ereignis bereit, das ausgelöst wird, wenn der Benutzer eine Tastenkombination drückt. Mehr...
| Header: | #include <QShortcutEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Erbt von: | QEvent |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- Veraltete Mitglieder
- QShortcutEvent ist Teil der Ereignisklassen.
Öffentliche Funktionen
(since 6.5) | QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false) |
| bool | isAmbiguous() const |
| const QKeySequence & | key() const |
Geschützte Funktionen
| QShortcutEvent(QShortcutEvent &&) | |
| QShortcutEvent & | operator=(QShortcutEvent &&) |
| QShortcutEvent & | operator=(const QShortcutEvent &other) |
Ausführliche Beschreibung
Normalerweise müssen Sie diese Klasse nicht direkt verwenden; „ QShortcut “ bietet eine übergeordnete Schnittstelle zur Verarbeitung von Tastenkombinationen.
Siehe auch „ QShortcut “.
Dokumentation zu den Member-Funktionen
[since 6.5] QShortcutEvent::QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false)
Erstellt ein Tastenkombination-Ereignis für die angegebene Tastenfolge „ key “, das mit der Tastenkombination „ QShortcut “ shortcut verknüpft ist.
ambiguous Gibt an, ob es mehr als ein „ QShortcut “ für dieselbe Tastenfolge gibt.
Diese Funktion wurde in Qt 6.5 eingeführt.
[protected delete] QShortcutEvent::QShortcutEvent(QShortcutEvent &&)
Erstellt eine Instanz von ` QShortcutEvent`. Diese Funktion ist gelöscht.
bool QShortcutEvent::isAmbiguous() const
Gibt „ true “ zurück, wenn die Tastenfolge, die das Ereignis ausgelöst hat, mehrdeutig ist.
Siehe auch ` QShortcut::activatedAmbiguously()`.
const QKeySequence &QShortcutEvent::key() const
Gibt die Tastenfolge zurück, die das Ereignis ausgelöst hat.
[protected delete] QShortcutEvent &QShortcutEvent::operator=(QShortcutEvent &&)
Weist „ other “ dieser „ QShortcutEvent “-Instanz zu. Diese Funktion wird gelöscht.
[noexcept protected default] QShortcutEvent &QShortcutEvent::operator=(const QShortcutEvent &other)
other Weist dieser „ QShortcutEvent “-Instanz „ “ zu. zu dieser „ “-Instanz zu.
© 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.