QActionInput Class

class Qt3DInput::QActionInput

QActionInput speichert Geräte und Schaltflächen, die zum Auslösen eines Eingabeereignisses verwendet werden. Mehr...

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

Eigenschaften

Öffentliche Funktionen

QActionInput(Qt3DCore::QNode *parent = nullptr)
QList<int> buttons() const
Qt3DInput::QAbstractPhysicalDevice *sourceDevice() const

Öffentliche Slots

void setButtons(const QList<int> &buttons)
void setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Signale

void buttonsChanged(const QList<int> &buttons)
void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Detaillierte Beschreibung

Dokumentation der Eigenschaften

buttons : QList<int>

Enthält die Schaltflächen, die diese Aktion auslösen können.

Zugriffsfunktionen:

QList<int> buttons() const
void setButtons(const QList<int> &buttons)

Melder-Signal:

void buttonsChanged(const QList<int> &buttons)

sourceDevice : Qt3DInput::QAbstractPhysicalDevice*

Die Stromquelle des QActionInput.

Zugriffsfunktionen:

Qt3DInput::QAbstractPhysicalDevice *sourceDevice() const
void setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Melder-Signal:

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Mitgliederfunktion Dokumentation

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

Konstruiert eine neue QActionInput-Instanz mit parent.

[signal] void QActionInput::buttonsChanged(const QList<int> &buttons)

Dieses Signal wird ausgegeben, wenn die mit dem Aktionseingang verbundenen Schaltflächen geändert werden. Die geänderten Schaltflächen sind buttons

Hinweis: Benachrichtigungssignal für die Eigenschaft buttons.

[slot] void QActionInput::setButtons(const QList<int> &buttons)

Setzen Sie die Schaltflächen zum Auslösen der Instanz QActionInput auf buttons.

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

Siehe auch buttons().

[signal] void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Dieses Signal wird ausgegeben, wenn das mit dem Aktionseingang verbundene Quellgerät auf sourceDevice geändert wird.

Hinweis: Benachrichtigungssignal für die Eigenschaft sourceDevice.

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