Adding Qt Versions
Qt Creator allows you to have multiple versions of Qt installed on your development PC and use different versions to build your projects. For example, device manufacturers provide special Qt versions for developing applications for their devices.
Qt Creator automatically detects the Qt versions that are registered by your system or by installers. To view detailed information for each Qt version, select it in the list and select Details in the Qt version for section. To add Qt versions, select Tools > Options > Build & Run > Qt Versions.
You specify the Qt version to use for each kit for building and running your projects in Tools > Options > Build & Run > Kits.
Setting Up New Qt Versions
To add a Qt version:
- Select Tools > Options > Build & Run > Qt Versions > Add.
- Select the qmake executable for the Qt version that you want to add.
- Select the Qt version to view and edit it.
- In the Version name field, edit the name that Qt Creator suggests for the Qt version.
- In the qmake location field, you can change the qmake location.
- If the Qt version is for QNX, enter the path to your installed QNX SDK in the QNX SDK field.
Troubleshooting Qt Installations
If Qt Creator detects problems in the installation of a Qt version, it displays warnings and errors beside the name of the Qt version in the list. Select the Qt version to see more information about the issue and suggestions for fixing it.
To determine whether a particular Qt version is installed correctly, Qt Creator calls
qmake -query and checks that the directories referenced in the output exist. When Qt Creator complains about the installation of a self-built Qt version, try running
make install in the build directory to actually install Qt into the configured location. If you installed Qt using the Qt installer, run the Qt maintenance tool to check for updates or to reinstall the Qt version.
If your build of Qt is incomplete but you still want to use QMake as build system, you need to ensure the following minimum requirements to be able to use that setup with Qt Creator.
- qmake is an executable that understands the -query command line argument.
- The bin and include directories have to exist. Qt Creator fetches these directories by running
- The mkspecs directory should be complete enough to parse .pro files.
If your Qt version has no libQtCore.so, Qt Creator is unable to detect the ABI.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.