Nesta página

ActionInput QML Type

Interface QML para a classe C++ ` Qt3DInput::QActionInput `. Mais...

Import Statement: import Qt3D.Input 2.12
In C++: QActionInput
Inherits:

AbstractActionInput

Status: Deprecated

Este tipo está obsoleto. Recomendamos enfaticamente que não seja utilizado em código novo.

Propriedades

Sinais

Descrição detalhada

Vincula um dispositivo físico e os botões selecionados nele que podem acionar essa ação.

Cada entrada de ação pode ser acionada por um ou vários botões em um dispositivo de origem

ActionInput {
  sourceDevice: keyboardSourceDevice
  buttons: [Qt.Key_A]
}
ActionInput {
  sourceDevice: keyboardSourceDevice
  buttons: [Qt.Key_A,Qt.Key_B]
}

Documentação da propriedade

buttons : list<int>

Os botões que podem acionar essa ação.

sourceDevice : AbstractPhysicalDevice

O dispositivo de fonte de corrente do ActionInput

Documentação do Signal

buttonsChanged(const QList<int> &buttons)

Esse sinal é emitido quando o ` buttons ` associado à entrada de ação é alterado.

O manipulador correspondente é onbuttonsChanged

Observação: O manipulador correspondente é onButtonsChanged.

sourceDeviceChanged()

Esse sinal é emitido quando o dispositivo de origem associado à entrada de ação é alterado.

O manipulador correspondente é onSourceDeviceChanged

Observação: o manipulador correspondente é onSourceDeviceChanged.

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