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.
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:
Start Qt Creator (type
ubuntu sdk
on the Dash)Go to Tools → Options
Select the Build & Run section
Select the Qt Versions tab
Click on the Add... button
In the file picker that just appeared navigate to the
/usr/bin
folder and select theqmake
file (it might take awhile to appear), select it, and click on the Open button. If this doesn't load also try theqmake
file located in the/usr/lib/x86_64-linux-gnu/qt5/bin
folder.Click on the OK button. The Qt Versions dialog should now look as the picture below
You should now be all set. Try the Ctrl + N shortcut (or go to File → New 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.