Auf dieser Seite

Qt3DInput::QActionInput Class

class Qt3DInput::QActionInput

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

Header: #include <qactioninput.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: ActionInput
Erbt von: Qt3DInput::QAbstractActionInput
Status: Veraltet

Diese Klasse ist veraltet. Wir raten dringend davon ab, sie in neuem Code zu verwenden.

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

Eigenschaftsdokumentation

buttons : QList<int>

Enthält die Schaltflächen, mit denen diese Aktion ausgelöst werden kann.

Zugriffsfunktionen:

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

Benachrichtigungssignal:

void buttonsChanged(const QList<int> &buttons)

sourceDevice : Qt3DInput::QAbstractPhysicalDevice*

Das Stromquellen-Gerät des „ QActionInput “.

Zugriffsfunktionen:

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

Benachrichtigungssignal:

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Dokumentation der Mitgliedsfunktionen

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

Erstellt eine neue QActionInput-Instanz mit den Parametern ` parent`.

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

Dieses Signal wird ausgelöst, wenn sich die der Aktions-Eingabe zugeordneten Schaltflächen ändern. Die betroffenen Schaltflächen sind buttons

Hinweis: Notifier -Signal für die Eigenschaft „ buttons “.

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

Stellen Sie die Schaltflächen so ein, dass sie die Instanz „ QActionInput “ auf „ buttons “ auslösen.

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 der Aktions-Eingabe verknüpfte Quellgerät auf „ sourceDevice “ umgestellt wird.

Hinweis: Benachrichtigungssignal für die Eigenschaft „ sourceDevice “.

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