QInputChord Class

class Qt3DInput::QInputChord

QInputChord stellt einen Satz von QAbstractActionInput's dar, die auf einmal ausgelöst werden müssen. Mehr...

Kopfzeile: #include <QInputChord>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: InputChord
Vererbt: Qt3DInput::QAbstractActionInput
Status: Veraltet

Eigenschaften

Ö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)

Detaillierte Beschreibung

Dokumentation der Eigenschaften

timeout : int

Die Zeit, innerhalb derer alle QAbstractActionInput's im Eingangsakkord ausgelöst werden müssen. Die Zeit wird in Millisekunden angegeben.

Zugriffsfunktionen:

int timeout() const
void setTimeout(int timeout)

Melder-Signal:

void timeoutChanged(int timeout)

Member Function Dokumentation

[explicit] QInputChord::QInputChord(Qt3DCore::QNode *parent = nullptr)

Konstruiert einen neuen QInputChord mit übergeordnetem parent.

void QInputChord::addChord(Qt3DInput::QAbstractActionInput *input)

Hängt den QAbstractActionInput input an das Ende des Sehnenvektors dieses QInputChord an.

Siehe auch removeChord.

QList<Qt3DInput::QAbstractActionInput *> QInputChord::chords() const

Gibt den Sehnenvektor von QInputChord zurück.

void QInputChord::removeChord(Qt3DInput::QAbstractActionInput *input)

Entfernen Sie die QAbstractActionInput input aus dem Sehnenvektor dieser QInputChord.

Siehe auch addChord.

[slot] void QInputChord::setTimeout(int timeout)

Setzt die Zeit, innerhalb derer alle QAbstractActionInput's im Eingangsakkord ausgelöst werden müssen, auf timeout. Die Zeit ist in Millisekunden angegeben.

Hinweis: Setter-Funktion für die Eigenschaft timeout.

Siehe auch timeout().

© 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.