在 Qt Creator QML 应用程序中导入 Qt Studio 项目

Importing Qt Studio Project in a Qt Creator QML app

我在 Qt Design Studio 中创建了一个 hello world 项目。现在我需要在 QtQuick qml 应用程序中导入 QtDS 项目 tree/directory。

有关此主题的官方文档在 doc.qt.io/qtdesignstudio/quick-converting-ui-projects. Assuming still this cannot work for you. You can check this post in the Qt forum: how-to-use-qmlproject-ui-qml-forms-from-design-studio-in-qt-creator-pro-project

所以为了恢复信息:

  1. 将 Qt DS 项目中的所有 *.ui.qml 文件设置为单独的 *qrc。
  2. 将新的 *qrc 导入到您的主 Qt 项目中。