En esta página

Qt3DInput::QActionInput Class

class Qt3DInput::QActionInput

QActionInput almacena el dispositivo y los botones utilizados para activar un evento de entrada. Más información...

Encabezado: #include <qactioninput.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
En QML: ActionInput
Heredan de: Qt3DInput::QAbstractActionInput
Estado: Obsoleto

Esta clase está en desuso. Se desaconseja encarecidamente su uso en código nuevo.

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 notificación:

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 de notificación:

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

Documentación de las funciones miembro

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

Crea una nueva instancia de `QActionInput` con ` parent`.

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

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

Nota: Señalde notificación para la propiedad « buttons ».

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

Configura los botones para que activen la instancia « QActionInput » en « buttons ».

Nota: Funciónde asignación 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 cambia a sourceDevice.

Nota: Señalde notificación 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.