In questa pagina

Qt3DInput::QInputAspect Class

class Qt3DInput::QInputAspect

Si occupa della creazione di dispositivi fisici e della gestione delle attività correlate. Per saperne di più...

Intestazione: #include <qinputaspect.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
Eredita da: Qt3DCore::QAbstractAspect
Stato: Obsoleto

Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.

Funzioni pubbliche

QInputAspect(QObject *parent = nullptr)
QStringList availablePhysicalDevices() const
Qt3DInput::QAbstractPhysicalDevice *createPhysicalDevice(const QString &name)

Descrizione dettagliata

QInputAspect è responsabile della creazione dei dispositivi fisici. È inoltre l'oggetto incaricato di stabilire i lavori da eseguire in un determinato momento in base alla configurazione di input corrente.

Documentazione delle funzioni membro

[explicit] QInputAspect::QInputAspect(QObject *parent = nullptr)

Crea un nuovo oggetto QInputAspect con l'parent.

QStringList QInputAspect::availablePhysicalDevices() const

Restituisce un elenco di tutti i dispositivi fisici disponibili.

Qt3DInput::QAbstractPhysicalDevice *QInputAspect::createPhysicalDevice(const QString &name)

Crea un dispositivo fisico identificato dall'name; l'utilizzo delle integrazioni dei dispositivi di input presenti restituisce un nullptr se il dispositivo non viene trovato.

Nota: il chiamante è responsabile della proprietà.

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