Exporting a Qt Design Studio project for C++ development
Before you export a Qt Design Studio project for Qt Creator, install the following:
- Qt Creator 13.0 or above.
- Qt Design Studio 4.5 or above.
- Git. To learn more about installing Git, see https://wiki.qt.io/Git_Installation.
To export a Qt Design Studio project for Qt Creator:
- Create or open a Qt Design Studio project with Qt Design Studio 4.5 or above.
Note: If you are creating a new project in Qt Design Studio, select a Target Qt Version that is not higher than the Qt version used in your Qt Creator.
- Go to File > Export Project > Enable CMake Generator. This creates a
CMakeLists.txt
file in your project folder.Note: Enabling this option tracks the changes made to the project in Qt Design Studio and automatically updates in Qt Creator. The connection works unless you deactivate the option.
Opening the Qt Design Studio project in Qt Creator
Open the CMakeLists.txt
file in Qt Creator:
- In Qt Creator, select File > Open File or Project.
- From your project folder, select
CMakeLists.txt
. Then select Open. - Select the Qt version and then Configure Project.
Note: If your Qt Design Studio project was created with a later Qt version than the one available in Qt Creator, the import doesn't work. Use Qt Online Installer to install the latest Qt version. If successfully opened, you see all files in the Projects view.
- To run the project, select the run dropdown from the top toolbar, and then select Live Preview.
Note: Qt Design Studio 4.4 and earlier versions have a project structure where different explicit import paths such as imports
or asset_imports
reference assets such as images or mesh files separately in their own scope. So, linking them from one module to another does not work in the generated CMake-based C++ application. Such cross-modular references are not considered good practice. Since Qt Design Studio 4.5, this issue has been solved. All the import assets are now bundled in the same folder, so the CMake generation works properly.
Available under certain Qt licenses.
Find out more.