In questa pagina

ActionInput QML Type

Frontend QML per la classe C++ ` Qt3DInput::QActionInput `. Maggiori informazioni...

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

AbstractActionInput

Status: Deprecated

Questo tipo è deprecato. Si sconsiglia vivamente di utilizzarlo nel nuovo codice.

Proprietà

Segnali

Descrizione dettagliata

Collega un dispositivo fisico e i pulsanti selezionati su di esso che possono attivare questa azione.

Ogni input di un'azione può essere attivato da uno o più pulsanti presenti su un dispositivo sorgente

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

Documentazione delle proprietà

buttons : list<int>

I pulsanti che possono attivare questa azione.

sourceDevice : AbstractPhysicalDevice

Il dispositivo che funge da sorgente di corrente del ActionInput

Documentazione sui segnali

buttonsChanged(const QList<int> &buttons)

Questo segnale viene emesso quando l'buttons e associato all'input dell'azione viene modificato.

Il gestore corrispondente è onbuttonsChanged

Nota: il gestore corrispondente è onButtonsChanged.

sourceDeviceChanged()

Questo segnale viene emesso quando viene modificato il dispositivo sorgente associato all'input dell'azione.

Il gestore corrispondente è onSourceDeviceChanged

Nota: il gestore corrispondente è 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.