Qt3DInput::QActionInput Class
class Qt3DInput::QActionInputO QActionInput armazena o dispositivo e os botões utilizados para acionar um evento de entrada. Mais...
| Cabeçalho: | #include <qactioninput.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| No QML: | ActionInput |
| Herda de: | Qt3DInput::QAbstractActionInput |
| Status: | Obsoleta |
Esta classe está obsoleta. Recomendamos enfaticamente que não seja utilizada em código novo.
Propriedades
- buttons : QList<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
Funções públicas
| QActionInput(Qt3DCore::QNode *parent = nullptr) | |
| QList<int> | buttons() const |
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
Slots públicos
| void | setButtons(const QList<int> &buttons) |
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Sinais
| void | buttonsChanged(const QList<int> &buttons) |
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Documentação de propriedades
buttons : QList<int>
Contém os botões que podem acionar esta ação.
Funções de acesso:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Sinal do notificador:
| void | buttonsChanged(const QList<int> &buttons) |
sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
O dispositivo de fonte de corrente do QActionInput.
Funções de acesso:
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Sinal de notificação:
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Documentação das funções-membro
[explicit] QActionInput::QActionInput(Qt3DCore::QNode *parent = nullptr)
Cria uma nova instância de QActionInput com ` parent`.
[signal] void QActionInput::buttonsChanged(const QList<int> &buttons)
Este sinal é emitido quando os botões associados à entrada da ação são alterados. Os botões alterados são buttons
Observação: Sinalde notificação para a propriedade buttons.
[slot] void QActionInput::setButtons(const QList<int> &buttons)
Defina os botões para acionar a instância ` QActionInput ` com o valor ` buttons`.
Observação: Funçãosetter para a propriedade buttons.
Veja também buttons().
[signal] void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)
Este sinal é emitido quando o dispositivo de origem associado à entrada de ação é alterado para sourceDevice.
Observação: Sinalde notificação para a propriedade 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.