QtDesignStudio/CMakeExporter
What is this page for
This page contains information how the CMakeFile exporter in Qt Design Studio works and lists the known issues.
CMakeFile exporter is a feature found in Qt Design Studio 4.6 onwards. This feature will generate needed CMakeFiles for all the layers and modules that are part of a QML UI project generated by the Qt Design Studio.
Known issues
Here are the known issues we have seen with the CMakeFile exporter tool so far. Most of the issues are caused because qmlproject structure was changed between 4.4 and 4.5. Projects that were started before Qt DS 4.5 might not get exported correctly.
Q: All the Qt Quick dependenices were not described as missing, compilation did not work.
A: Some projects in Qt DS assume that certain components are present nevertheless, hence Qt Timeline and Qt Quick3D for example. We are adding these to the packages that are checked by the CMake in next versions.
Q: Qt Quick3D assets cannot be resolved in Creartor project while building the project
A: The paths to include Quick3D items need to be defined explicitly so that including the files will happen. This in practise means:
- Update qmlproject file and change importPaths line to be: importPaths: [ "imports", "." ]
- Change the uris in the qmldir files to be relative to the new importPaths (root folder): asset_imports.Quick3DAssets.<name of the object> This way the file will be stored in the resource system at the following location, for example: :/qt/qml/asset_imports/Quick3DAssets/<name of the object>/meshes/<mesh-filename>.mesh
- Modify the import statements in QML files that start with: import Quick3DAssets.xxx to import asset_imports.Quick3DAssets.xxx