QtDesignStudio/QMLProjectFileFormat

From Qt Wiki
< QtDesignStudio
Revision as of 16:25, 5 November 2024 by Thomas Hartmann (talk | contribs) (Created page with "With Qt Design Studio 4.5 the project structure did change. The default import path is now "./" the root folder of the project, since this better matches with the requirements of the QML compiler and tooling around QML. Before there were usually two import "imports" and "assets_imports". Also relative URLS between modules are now the same in QDS and in the compiled C++ application. The default project module is now in ./ProjectName instead of imports/ProjectName. Asse...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

With Qt Design Studio 4.5 the project structure did change.

The default import path is now "./" the root folder of the project, since this better matches with the requirements of the QML compiler and tooling around QML. Before there were usually two import "imports" and "assets_imports". Also relative URLS between modules are now the same in QDS and in the compiled C++ application.

The default project module is now in ./ProjectName instead of imports/ProjectName.

Assets are now imported to "Generated" instaed of "assets_imports". QtQuick3D assets are now in Generated/QtQuick3D and Generated.Effects instead of e.g. assets_imports/QtQuick3DAssets.

Adjusting the project strucuture for legacy projects:

Move the project module from "./import/ProjectName" to "./ProjectName". The same applies to any other module in imports.

Move all modules from "./assets_imports" to "./Generated" unfortly this also requires adjusting the import URI throughout the project.