Qt Quick UI templates missing from Qt Creator's New File or Project dialog

After following the getting started guide on the Go mobile page, everything seems just fine.

All the Ubuntu specific stuff is there, but when I try to create a new project using the Qt Quick 2 UI template, it's just missing. There are almost no templates available.

I'm on Ubuntu 12.10 64-bit, clean install.

How my screen looks when trying to do create a Ubuntu Phone app

This is how my New File or Project dialog looks like.


Solution 1:

First check out that you are starting the Qt Creator version with the Ubuntu SDK plugins enabled.

If that does not solve it for you, you might be running into a known issue: it seems the Qt 5 runtime is not automatically detected by Qt Creator.

If you're affected by this, you will need to tell Qt Creator where the qmake binary file is in order for it to present you with the template wizards.

Fortunately, that's really straightforward:

  1. Start Qt Creator (type ubuntu sdk on the Dash)

  2. Go to ToolsOptions

  3. Select the Build & Run section

  4. Select the Qt Versions tab

  5. Click on the Add... button

  6. In the file picker that just appeared navigate to the /usr/bin folder and select the qmake file (it might take awhile to appear), select it, and click on the Open button. If this doesn't load also try the qmake file located in the /usr/lib/x86_64-linux-gnu/qt5/bin folder.

  7. Click on the OK button. The Qt Versions dialog should now look as the picture below

enter image description here

You should now be all set. Try the Ctrl + N shortcut (or go to FileNew File or Project...) to start the new project wizard. The templates should now be in there.

Solution 2:

If you run out of ideas to try in Qt Creator's own configuration, and you don't have anything you need to save in the configuration, as a last resort you can try quitting Qt Creator, resetting Qt Creator's configuration with:

rm -r .config/Trolltech.conf .config/Qt* .config/Nokia*

(see Bug #1164504 “No automatic reconfiguration / reconfiguration fea...” : Bugs : “qtcreator” package : Ubuntu ), and starting Qt Creator again.