Qt3DInput::QActionInput Class
class Qt3DInput::QActionInputQActionInput memorizza il dispositivo e i pulsanti utilizzati per attivare un evento di input. Per saperne di più...
| Intestazione: | #include <qactioninput.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| In QML: | ActionInput |
| Eredita da: | Qt3DInput::QAbstractActionInput |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- buttons : QList<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
Funzioni pubbliche
| QActionInput(Qt3DCore::QNode *parent = nullptr) | |
| QList<int> | buttons() const |
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
Slot pubblici
| void | setButtons(const QList<int> &buttons) |
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Segnali
| void | buttonsChanged(const QList<int> &buttons) |
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Documentazione delle proprietà
buttons : QList<int>
Contiene i pulsanti che possono attivare questa azione.
Funzioni di accesso:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Segnale di notifica:
| void | buttonsChanged(const QList<int> &buttons) |
sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
Il dispositivo che funge da sorgente di corrente dell'QActionInput.
Funzioni di accesso:
| Qt3DInput::QAbstractPhysicalDevice * | sourceDevice() const |
| void | setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Segnale di notifica:
| void | sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice) |
Documentazione delle funzioni membro
[explicit] QActionInput::QActionInput(Qt3DCore::QNode *parent = nullptr)
Crea una nuova istanza di QActionInput con ` parent`.
[signal] void QActionInput::buttonsChanged(const QList<int> &buttons)
Questo segnale viene emesso quando cambiano i pulsanti associati all'input dell'azione. I pulsanti che cambiano sono buttons
Nota: segnaledi notifica per la proprietà buttons.
[slot] void QActionInput::setButtons(const QList<int> &buttons)
Imposta i pulsanti in modo che attivino l'istanza ` QActionInput ` su ` buttons`.
Nota: funzionesetter per la proprietà ` buttons`.
Vedi anche buttons().
[signal] void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)
Questo segnale viene emesso quando il dispositivo di origine associato all'input dell'azione viene modificato in sourceDevice.
Nota: Segnaledi notifica per la proprietà 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.