Qt3DInput::QInputSettings Class
class Qt3DInput::QInputSettingsLa classe QInputSettings contiene il puntatore a un oggetto sorgente di eventi di input. Per saperne di più...
| Intestazione: | #include <qinputsettings.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| In QML: | InputSettings |
| Eredita da: | Qt3DCore::QComponent |
| Stato: | Obsoleta |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Proprietà
- eventSource : QObject*
Funzioni pubbliche
| QObject * | eventSource() const |
Slot pubblici
| void | setEventSource(QObject *eventSource) |
Segnali
| void | eventSourceChanged(QObject *) |
Descrizione dettagliata
Il componente QInputSettings deve essere impostato come componente dell'entità radice della scena. Esso memorizza un puntatore all'oggetto che funge da sorgente degli eventi di input che devono essere gestiti dalle varie classi di input. Ad esempio, un'istanza di QWindow può essere una sorgente di eventi.
Vedi anche QMouseDevice e QKeyboardDevice.
Documentazione delle proprietà
eventSource : QObject*
Contiene la sorgente di eventi corrente. Una sorgente di eventi è un oggetto in grado di ricevere vari eventi di input, come quelli del mouse o della tastiera. In genere si tratta di un’istanza di ` QWindow `.
Funzioni di accesso:
| QObject * | eventSource() const |
| void | setEventSource(QObject *eventSource) |
Segnale di notifica:
| void | eventSourceChanged(QObject *) |
© 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.