Qt

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

Qt Creator automatically detects the Qt versions that are registered by your system or by Qt SDK. 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:

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

  2. Select 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 qmake location field.

  3. In the Version name field, edit the name that Qt Creator suggests for the Qt version.
  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 QNX Versions

If you install Qt for QNX as a part of Qt Playbook SDK, it is automatically detected by Qt Creator. The BlackBerry Native SDK field displays the path to the directory where the Blackberry NDK is located.

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

If you have built your own version of Qt for QNX or BlackBerry you need to add this manually to Qt Creator using the above dialog:

  1. Select Tools > Options > Build & Run > Qt Versions > Add.
  2. Navigate to and select the qmake application that is part of your Qt for QNX build and select Open.
  3. In the Blackberry Native SDK or QNX SDK field enter the path to your installed Blackberry NDK or QNX SDK respectively.
  4. Select OK.