机器人手臂
演示如何将 C++ 后端添加到来自Qt Design Studio 的 3D 项目中。

Robot Arm 示例演示了如何将 C++ 后端添加到在Qt Design Studio 中创建的 3D 项目中。该示例包括Qt Quick 3D 场景中的交互式工业机械臂。 Qt Quick Controls 实现了控制机械臂的 2D UI。
运行示例
要从 Qt Creator打开Welcome 模式,然后从Examples 中选择示例。更多信息,请参阅Qt Creator: 教程:构建并运行。
对于Qt Design Studio ,Robot Arm 示例在backend_moc/Backend/Backend_moc.qml 中附带了一个 QML 模块,作为项目的后台。C++ 应用程序实现了一个兼容的后端 QML 模块。两个 QML 模块实现了相同的 API,确保了两个模块之间的兼容性。
content/RoboticArm.ui.qml Qt Quick content/MainScreen.ui.qml 实现了 2D UI 并支持明暗主题。该示例使用 Controls 中的 Material 风格以及深色和浅色主题来实现两种模式。Qt Quick
注: 该示例使用了Qt Quick 3D模块,该模块是. Qt Online Installer.如果示例配置失败,请确保您已安装Qt Quick 3D 软件包。
源文件
另请参阅 所有 Qt 示例和Qt 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.