Before I start, here is my setup:
Ubuntu 12.04.1
Default install of Qtcreator from Software Center.
For the rest, I' m doing all the thing from qtcreator
I wanted to try some examples from QT Assistant : Home > QtWebKit QML Module ;
the code is as simple as follow :
import QtWebKit 1.0
WebView {
url: "http://www.nokia.com"
preferredWidth: 490
preferredHeight: 400
scale: 0.5
smooth: false
}
and the error I'm getting is the one below
Qml debugging is enabled. Only use this in a safe environment!
file:///home/cyrildz/Public/Programming/UbuntuQml/UbuntuQml.qml:1:1: module "QtWebKit" is not installed
import QtWebKit 1.0
^
I got this error from qtcreator and this prevent me from running the example.
To set Qt5 on my desktop , I took the description from http://developer.ubuntu.com/get-started/gomobile/
that is :
sudo add-apt-repository ppa:canonical-qt5-edgers/qt5-beta1 && sudo apt-get update && sudo apt-get install qt5-meta-full && echo 'export PATH=/opt/qt5/bin:$PATH' >> ~/.bashrc
and then :
sudo add-apt-repository ppa:ubuntu-sdk-team/ppa && sudo apt-get update && sudo apt-get install qt-components-ubuntu qt-components-ubuntu-demos qt-components-ubuntu-examples qt-components-ubuntu-doc notepad-qml
For more info, I looked on the folder : /usr/lib/qt4/imports and i don't see anything relevant for the module QtWebkit1.0.
Could someone please help with this issue ?