En esta página

Qt3DInput::QActionInput Class

class Qt3DInput::QActionInput

QActionInput almacena el Dispositivo y los Botones utilizados para disparar un evento de entrada. Más...

Cabecera: #include <QActionInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
En QML: ActionInput
Hereda: Qt3DInput::QAbstractActionInput
Status: Obsoleto

Propiedades

Funciones públicas

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

Ranuras públicas

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

Señales

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

Descripción detallada

Documentación de propiedades

buttons : QList<int>

Contiene los botones que pueden activar esta Acción.

Funciones de acceso:

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

Señal de aviso:

void buttonsChanged(const QList<int> &buttons)

sourceDevice : Qt3DInput::QAbstractPhysicalDevice*

El dispositivo de fuente de corriente del QActionInput.

Funciones de acceso:

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

Señal del notificador:

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Documentación de la función miembro

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

Construye una nueva instancia de QActionInput con parent.

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

Esta señal se emite cuando se cambian los botones asociados a la entrada de acción. Los botones cambiados son buttons

Nota: Señal notificadora para la propiedad buttons.

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

Configure los botones para activar la instancia QActionInput en buttons.

Nota: Función Setter para la propiedad buttons.

Véase también buttons().

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

Esta señal se emite cuando el dispositivo de origen asociado a la entrada de acción se cambia a sourceDevice.

Nota: Señal notificadora para la propiedad 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.