QShortcutEvent Class
La classe QShortcutEvent fornisce un evento che viene generato quando l'utente preme una combinazione di tasti. Per saperne di più...
| Intestazione: | #include <QShortcutEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
| qmake: | QT += gui |
| Eredita da: | QEvent |
- Elenco di tutti i membri, compresi quelli ereditati
- Elementi deprecati
- QShortcutEvent fa parte delle classi di eventi.
Funzioni pubbliche
(since 6.5) | QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false) |
| bool | isAmbiguous() const |
| const QKeySequence & | key() const |
Funzioni protette
| QShortcutEvent(QShortcutEvent &&) | |
| QShortcutEvent & | operator=(QShortcutEvent &&) |
| QShortcutEvent & | operator=(const QShortcutEvent &other) |
Descrizione dettagliata
Normalmente non è necessario utilizzare direttamente questa classe; QShortcut fornisce un'interfaccia di livello superiore per la gestione dei tasti di scelta rapida.
Vedi anche QShortcut.
Documentazione sulle funzioni membro
[since 6.5] QShortcutEvent::QShortcutEvent(const QKeySequence &key, const QShortcut *shortcut = nullptr, bool ambiguous = false)
Crea un evento di scorciatoia per la sequenza di tasti specificata key, associata a QShortcut shortcut .
ambiguous Specifica se esiste più di un QShortcut per la stessa sequenza di tasti.
Questa funzione è stata introdotta in Qt 6.5.
[protected delete] QShortcutEvent::QShortcutEvent(QShortcutEvent &&)
Crea un'istanza di ` QShortcutEvent`. Questa funzione è stata eliminata.
bool QShortcutEvent::isAmbiguous() const
Restituisce true se la sequenza di tasti che ha attivato l'evento è ambigua.
Vedi anche QShortcut::activatedAmbiguously().
const QKeySequence &QShortcutEvent::key() const
Restituisce la sequenza di chiavi che ha attivato l'evento.
[protected delete] QShortcutEvent &QShortcutEvent::operator=(QShortcutEvent &&)
Assegna " other " a questa istanza di " QShortcutEvent ". Questa funzione viene eliminata.
[noexcept protected default] QShortcutEvent &QShortcutEvent::operator=(const QShortcutEvent &other)
Assegna “ other ” a questa istanza di “ 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.