Auf dieser Seite

Qt3DInput::QAbstractPhysicalDevice Class

class Qt3DInput::QAbstractPhysicalDevice

„QAbstractPhysicalDevice“ ist die Basisklasse, die von Qt3d für die Interaktion mit beliebigen Eingabegeräten verwendet wird. Mehr...

Header: #include <qabstractphysicaldevice.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
In QML: AbstractPhysicalDevice
Erbt von: Qt3DCore::QNode
Vererbt an:

Qt3DInput::QKeyboardDevice und Qt3DInput::QMouseDevice

Status: Veraltet

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

Öffentliche Funktionen

QAbstractPhysicalDevice(Qt3DCore::QNode *parent = nullptr)
void addAxisSetting(Qt3DInput::QAxisSetting *axisSetting)
virtual int axisCount() const
virtual int axisIdentifier(const QString &name) const
virtual QStringList axisNames() const
QList<Qt3DInput::QAxisSetting *> axisSettings() const
virtual int buttonCount() const
virtual int buttonIdentifier(const QString &name) const
virtual QStringList buttonNames() const
void removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting)

Ausführliche Beschreibung

Dokumentation zu den Mitgliedsfunktionen

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

Erstellt eine neue Instanz von `QAbstractPhysicalDevice` mit ` parent`.

void QAbstractPhysicalDevice::addAxisSetting(Qt3DInput::QAxisSetting *axisSetting)

Fügen Sie diesem Gerät die Achsenkonfiguration „ axisSetting “ hinzu.

[virtual] int QAbstractPhysicalDevice::axisCount() const

Gibt die Anzahl der Achsen dieses Geräts zurück.

[virtual] int QAbstractPhysicalDevice::axisIdentifier(const QString &name) const

Gibt die ganzzahlige Kennung der Achse „ name “ zurück oder -1, falls diese auf diesem Gerät nicht vorhanden ist.

[virtual] QStringList QAbstractPhysicalDevice::axisNames() const

Gibt eine Liste mit den Namen der Achsen des Geräts zurück.

QList<Qt3DInput::QAxisSetting *> QAbstractPhysicalDevice::axisSettings() const

Gibt die diesem Gerät zugeordneten axisSettings zurück.

[virtual] int QAbstractPhysicalDevice::buttonCount() const

Gibt die Anzahl der Tasten dieses Geräts zurück.

[virtual] int QAbstractPhysicalDevice::buttonIdentifier(const QString &name) const

Gibt die ganzzahlige Kennung der Schaltfläche „ name “ zurück oder -1, falls diese auf diesem Gerät nicht vorhanden ist.

[virtual] QStringList QAbstractPhysicalDevice::buttonNames() const

Gibt eine Liste mit den Namen der Tasten des Geräts zurück.

void QAbstractPhysicalDevice::removeAxisSetting(Qt3DInput::QAxisSetting *axisSetting)

Entfernen Sie die Achsenkonfiguration „ axisSetting “ von diesem Gerät.

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