PDA

View Full Version : WebKit / QML



qtpat
29th December 2010, 19:52
Hi!

I'd like to use webkit with QML which import should I make ? Is the webkit library included with the QML version coming with Qt 4.7 ?

Thanks !

wysota
29th December 2010, 19:59
import QtWebKit 1.0

WebView {
url: "http://www.nokia.com"
preferredWidth: 490
preferredHeight: 400
scale: 0.5
smooth: false
smoothCache: true
}

qtpat
30th December 2010, 10:38
I had previously tried already the import QtWebKit 1.0 but I was getting the following error message:

"module "QtWebKit" is not installed"

I googled for this error message and found out that it seems to be a bug occurring on Mac :

http://bugreports.qt.nokia.com/browse/QTCREATORBUG-3387