Qt3DInput::QInputChord Class
class Qt3DInput::QInputChordQInputChord steht für eine Gruppe von „ QAbstractActionInput “, die gleichzeitig ausgelöst werden müssen. Mehr...
| Header: | #include <qinputchord.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| In QML: | InputChord |
| Erbt von: | Qt3DInput::QAbstractActionInput |
| Status: | Veraltet |
Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.
Eigenschaften
- timeout : int
Öffentliche Funktionen
| QInputChord(Qt3DCore::QNode *parent = nullptr) | |
| void | addChord(Qt3DInput::QAbstractActionInput *input) |
| QList<Qt3DInput::QAbstractActionInput *> | chords() const |
| void | removeChord(Qt3DInput::QAbstractActionInput *input) |
| int | timeout() const |
Öffentliche Slots
| void | setTimeout(int timeout) |
Signale
| void | timeoutChanged(int timeout) |
Eigenschaftsdokumentation
timeout : int
Die Zeitspanne, innerhalb derer alle „QAbstractActionInput“-Objekte im Eingabeakkord ausgelöst werden müssen. Die Zeitangabe erfolgt in Millisekunden.
Zugriffsfunktionen:
| int | timeout() const |
| void | setTimeout(int timeout) |
Notifier-Signal:
| void | timeoutChanged(int timeout) |
Dokumentation der Mitgliedsfunktionen
[explicit] QInputChord::QInputChord(Qt3DCore::QNode *parent = nullptr)
Erstellt ein neues `QInputChord`-Objekt, dessen übergeordnetes Element ` parent` ist.
void QInputChord::addChord(Qt3DInput::QAbstractActionInput *input)
Füge den „ input “ von QAbstractActionInput am Ende des Chord-Vektors dieses „ QInputChord “ an.
Siehe auch removeChord.
QList<Qt3DInput::QAbstractActionInput *> QInputChord::chords() const
Gibt den Chord-Vektor von „ QInputChord “ zurück.
void QInputChord::removeChord(Qt3DInput::QAbstractActionInput *input)
Entferne das „ input “ vom „QAbstractActionInput“ aus dem Akkordvektor dieses „ QInputChord “.
Siehe auch ` addChord`.
[slot] void QInputChord::setTimeout(int timeout)
Legt die Zeitspanne fest, innerhalb derer alle `QAbstractActionInput`-Objekte im Eingabeakkord ausgelöst werden müssen: timeout. Die Zeitangabe erfolgt in Millisekunden
Hinweis: Setter -Funktion für die Eigenschaft ` timeout`.
Siehe auch ` timeout()`.
© 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.