Braccio robotico
Mostra come aggiungere un backend C++ a un progetto 3D da Qt Design Studio.

L'esempio "Braccio robotico" illustra come aggiungere un backend C++ a un progetto 3D creato in Qt Design Studio. L'esempio consiste in un braccio robotico industriale interattivo in una scena Qt Quick 3D. " Qt Quick Controls" implementa l'interfaccia utente 2D per il controllo del braccio robotico.
Esecuzione dell’esempio
È possibile eseguire l’esempio da:
- Qt Creator
Aprire la modalità Welcome e selezionare l’esempio da Examples. Per ulteriori informazioni, consultare Qt Creator: Tutorial: Compilazione ed esecuzione.
- Qt Extension for Visual Studio Code
Eseguire il comando " Qt: Open Qt examples " da Command Palette e selezionare l'esempio dall'elenco. Per ulteriori informazioni, consultare Qt Extension for Visual Studio Code: Tutorial: Compilazione ed esecuzione.
Per Qt Design Studio, l’esempio Robot Arm include un modulo QML in backend_moc/Backend/Backend_moc.qml che funge da backend per il progetto. L’applicazione C++ implementa un modulo QML di backend compatibile. Entrambi i moduli QML implementano la stessa API, il che garantisce la compatibilità tra i due moduli.
content/RoboticArm.ui.qml definisce la scena di Qt Quick 3D. content/MainScreen.ui.qml implementa l’interfaccia utente 2D e supporta un tema chiaro e uno scuro. L’esempio utilizza lo stile Material da Qt Quick Controls e i temi chiaro e scuro per implementare entrambe le modalità.
Nota: l’esempio fa uso del Qt Quick 3D modulo, che è una voce separata nel Qt Online Installer. Se l'esempio non si configura correttamente, assicurati di avere installato il pacchetto Qt Quick 3D.
File sorgente
Vedi anche Tutti gli esempi Qt e gli esempi e i tutorial diQt Quick .
© 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.