Jump to content

QtDesignStudio/build QDS: Difference between revisions

From Qt Wiki
No edit summary
Tim.Jenssen (talk | contribs)
No edit summary
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Instruction on how to build Qt Design Studio.
Instruction on how to build Qt Design Studio add-on components.




'''Qt Design Studio is based on Qt Creator'''
== Qt Design Studio environment needs a special add-on lib to work ==


The Qt Design studio consists of:
== Windows notes: ==


* Qt Creator
* Use MSVC2022, MinGW is not activly supported.
** The branches are prefixed with qds. e.g. qds/dev or qds/4.6
* Studio components which are necessary for the used kit
 
We build with '''CMake''' + '''Ninja''' by default.
 
'''Windows notes:'''
 
* We use '''MSVC2019''' on Windows, but MSVC2022 should also work. MinGW is not activly supported.
** you need "Desktop development with C++" + "'''Windows * SDK'''" (which is not default)
** you need "Desktop development with C++" + "'''Windows * SDK'''" (which is not default)
* Also, do not use a '''build path that is too long'''. For example, if you have a long user path or if one drive is involved, it can result in '''crazy build errors'''
* Also, do not use a '''build path that is too long'''. For example, if you have a long user path or if one drive is involved, it can result in '''crazy build errors'''
** a good path is, for example, '''c:\dev'''. It is also good that it is not synced to one drive, which makes the machine slow during a compile.
** a good path is, for example, '''c:\dev'''. It is also good that it is not synced to one drive, which makes the machine slow during a compile.


since Qt Design Studio 4.6.0 we use Qt 6.7.3 to build it
Use Qt 6.10.3 to build it.
 
Make sure to enable BUILD_DESIGNSTUDIO in the CMake options.
==== In case you use your own Qt there is the need to get Studio Components that are used in any wizard-created project ====
The Studio Components are necessary to create a new project with the wizard, and also it contains components for the Simulator, EventList, and FlowView:
 
https://codereview.qt-project.org/q/project:qt-labs%252Fqtquickdesigner-components
 
Therefore, you should install the qtquickdesigner-components in the qt you use:
 
git clone "ssh://username@codereview.qt-project.org:29418/qt-labs/qtquickdesigner-components"
mkdir qtquickdesigner-components_build && cd qtquickdesigner-components_build
cmake -G"Ninja" -S ../qtquickdesigner-components -DCMAKE_PREFIX_PATH=/Users/tijensse/Qt/6.2.3/macos/ -DCMAKE_MAKE_PROGRAM:STRING=/opt/homebrew/bin/ninja
The important thing is to use ninja. Then, it will find the used Qt and know where to install it
 
For building qtquickdesigner on Ubuntu, I've used the following workflow. Before that, you need to check out the repository mentioned above. For this to work, it must be placed in its default folder (defined by the repository) called qtquickdesigner-components. From its parent folder, do the following:
 
mkdir qtquickdesigner-components-build
cd qtquickdesigner-components-build/
cmake -G Ninja -DCMAKE_PREFIX_PATH=~/Qt/6.2.4/gcc_64 ../qtquickdesigner-components
cmake --build .
cmake --install .
set/manage the correct kit
 
remove Kit from HideOptionCategories in the  installsettings


installsettings location in source: qt-creator\dist\branding\qtdesignstudio\QtProject\QtDesignStudio.ini (will be copied by building to, for example: C:\dev\build\qtcreator\share\qtcreator\QtProject\QtDesignStudio.ini )
=== In case you use your own Qt there is the need to get Studio Components that are used in any wizard-created project ===
installsettings in a windows installation:
* its build and installed as part of the build process (qmlpuppet cmake does this).

Latest revision as of 00:12, 13 April 2026

Instruction on how to build Qt Design Studio add-on components.


Qt Design Studio environment needs a special add-on lib to work

Windows notes:

  • Use MSVC2022, MinGW is not activly supported.
    • you need "Desktop development with C++" + "Windows * SDK" (which is not default)
  • Also, do not use a build path that is too long. For example, if you have a long user path or if one drive is involved, it can result in crazy build errors
    • a good path is, for example, c:\dev. It is also good that it is not synced to one drive, which makes the machine slow during a compile.

Use Qt 6.10.3 to build it. Make sure to enable BUILD_DESIGNSTUDIO in the CMake options.

In case you use your own Qt there is the need to get Studio Components that are used in any wizard-created project

  • its build and installed as part of the build process (qmlpuppet cmake does this).