Qt Creator Manual

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 different targets. For example, Qt SDK contains special Qt versions for developing applications for mobile devices.

Qt Creator checks the directories listed in the PATH environment variable for the qmake executable. If a qmake executable is found, it is referred to as Qt in PATH and selected as the Qt version to use in the Projects mode in the Build Settings. If Qt Creator cannot find qmake, the value in the Qt version field might be invalid and you might need to change it.

Qt Creator automatically detects the Qt versions that are registered by your system or by Qt SDK. To view the settings for each Qt version, move the mouse pointer over it in the list. To add Qt versions, select Tools > Options > Build & Run > Qt Versions.

Typically, you select the Qt versions for a project when you use project wizards to create the project. You can add Qt versions for a project in Build Settings.

Setting Up New Qt Versions

To add a Qt version:

  1. Select Tools > Options > Build & Run > Qt Versions > Add.

  2. In the Version name field, edit the name that Qt Creator suggests for the Qt version.
  3. In the qmake location field, enter the path to the directory where the qmake executable is located.

    Qt Creator automatically determines the path to the binaries in the Qt installation and displays it in the dialog.

  4. In the Helpers section, you can build the debugging helpers that are available for the Qt version. This is necessary, because the internal data structures of Qt can change between versions. For more information, see Using Debugging Helpers.

Setting Up Qt for Symbian Versions

If you install Qt for Symbian as a part of Qt SDK, it is automatically detected by Qt Creator. If you install other Symbian SDKs and register them with devices.exe, Qt Creator automatically detects the Qt version. The S60 SDK field displays the path to the directory where the Symbian SDK is located.

If the selected Qt version was built using the SBSv2 build system, that is available for Symbian OS 9.5 based SDKs, Qt Creator builds your projects using this build system. The SBS v2 directory field displays the path to the directory where the SBS executable (for example, sbs.bat on Windows) is located.

To view Qt for Symbian version settings, select Tools > Options > Build & Run > Qt Versions.

For more information about how to add tool chains for using the GCCE and WINSCW compilers, see Adding Tool Chains.