このページでは

ロボットアーム

Qt Design Studio の 3D プロジェクトに C++ バックエンドを追加する方法を示します。

GUIで操作できるロボットアーム

Robot Arm のサンプルは、Qt Design Studio で作成された 3D プロジェクトに C++ バックエンドを追加する方法を示しています。Qt Quick 3D Qt Quick Controls は、ロボットアームを制御するための 2D UI を実装しています。

例の実行

からサンプルを実行するには Qt Creatorからサンプルを実行するには、Welcome モードを開き、Examples からサンプルを選択します。詳細については、Qt Creator:Tutorialを参照してください:ビルドと実行を参照してください。

Qt Design Studio の場合、Robot Arm のサンプルには、プロジェクトのバックエンドとなる QML モジュールがbackend_moc/Backend/Backend_moc.qml に付属しています。C++アプリケーションは互換性のあるバックエンドQMLモジュールを実装しています。どちらのQMLモジュールも同じAPIを実装しているため、2つのモジュール間の互換性が保たれています。

content/RoboticArm.ui.qml Qt Quick 3D content/MainScreen.ui.qml は、2D UI を実装し、ライトテーマとダークテーマをサポートしています。この例では、 のマテリアル・スタイルと、ダーク・テーマとライト・テーマを使用して、両方のモードを実装しています。Qt Quick Controls

注: この例では Qt Quick 3Dモジュールを使用しています。 Qt Online Installer.サンプルが設定に失敗する場合は、Qt Quick 3D パッケージがインストールされていることを確認してください。

ソースファイル

サンプルプロジェクト @ code.qt.io

All Qt ExamplesQt Quick Examples and Tutorialsも参照してください

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