Why Ubuntu.Components 0.1 missing from QTCreator?
Solution 1:
I found out the solution at least for ubuntu 12.04. I had to go to the official site http://qt-project.org/downloads#qt-creator and download the latest Qt package which is Qt 5.0.0.
*Note: Ubuntu 12.04 doesn't include the latest Qt version, so you have to download it manually.
- Qt libraries 5.0.0 for Linux 64-bit (410 MB)
- Qt libraries 5.0.0 for Linux 32-bit (411 MB)
*Note: Before the installation i removed the previous version of QtCreator (2.5.0)
All you have to do in order to install Qt5 package is:
chmod 755 qt-linux-opensource-5.0.0-x86_64-offline.run
Then just execute the package and run the installer with the default settings.
./qt-linux-opensource-5.0.0-x86_64-offline.run
Now should exist
/opt/qt5/imports/Ubuntu/Components
path, with all the libraries!
After that i followed the instructions of the CurrencyConverter
*Note that line:
import Ubuntu.Components 0.1
is still highlighted with a red line but the program runs normally by choosing
Tools > External > Qt Quick > Preview (qmlviewer)
(thanks to @David Planella)