QShortcutEvent Class
Die Klasse QShortcutEvent bietet ein Ereignis, das erzeugt wird, wenn der Benutzer eine Tastenkombination drückt. Mehr...
Kopfzeile: | #include <QShortcutEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
Vererbungen: | QEvent |
- Liste aller Mitglieder, einschließlich geerbter Mitglieder
- Veraltete Mitglieder
- QShortcutEvent ist Teil von Event Classes.
Öffentliche Funktionen
(since 6.5) | QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false) |
bool | isAmbiguous() const |
const QKeySequence & | key() const |
Detaillierte Beschreibung
Normalerweise brauchen Sie diese Klasse nicht direkt zu verwenden; QShortcut bietet eine übergeordnete Schnittstelle zur Handhabung von Tastenkürzeln.
Siehe auch QShortcut.
Dokumentation der Mitgliedsfunktionen
[since 6.5]
QShortcutEvent::QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false)
Konstruiert ein Tastenkürzel-Ereignis für den angegebenen key Druck, der mit dem QShortcut shortcut verbunden ist.
ambiguous gibt an, ob es mehr als eine QShortcut für dieselbe Tastenfolge gibt.
Diese Funktion wurde in Qt 6.5 eingeführt.
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.
© 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.