[webkit-qt] Qt5 / WebKit2 / QML Examples & Documentation?
Milian Wolff
milian.wolff at kdab.com
Fri Jun 1 10:18:45 PDT 2012
On Friday 01 June 2012 19:10:43 Milian Wolff wrote:
> On Friday 01 June 2012 13:13:57 Kenneth Rohde Christiansen wrote:
> > Hi there,
> >
> > Not much have been done on the API documentation side. I did a bit,
> > but not much.
> >
> > We do thought have plenty of autotests mostly found in
> > Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/
> >
> > Those show more or less how to use the API, as well as the MiniBrowser
> > in Tools/MiniBrowser/qt
>
> OK, thanks.
>
> I hope its OK to post some more questions that I cannot figure out by
> looking at the examples here.
>
> First up, I wanted to start with a minimal case, like e.g.:
>
> ~~~~~
> import QtQuick 2.0
> import QtWebKit 3.0
>
> Rectangle {
> id: root
> width:800
> height:600
>
> WebView {
> id: webView
> clip: false
> anchors {
> top: parent.top
> left: parent.left
> right: parent.right
> bottom: parent.bottom
> }
> }
>
> Component.onCompleted: {
> console.log("completed")
> webView.url = "http://qt.nokia.com/"
> }
> }
> ~~~~~
>
> I notice that, while WebView is already a Flickable, it does not react on
> mouse drag'n'drop events. I.e. I cannot flick it. Neither does the view
> react on clicks, i.e. I cannot navigate the initially loaded website...
>
> Looking at the MiniBrowser (i.e. BrowserWindow.qml) I cannot figure out how
> this is handled there. The ScrollIndicator is just eyecandy but is something
> like the itemSelector required to give the user feedback on where he
> clicked?
PS: In case it's important: I save the above as e.g. test.qml and run it using
Qt5's bin/qmlscene.
Bye
--
Milian Wolff | milian.wolff at kdab.com | Software Engineer
KDAB (Deutschland) GmbH&Co KG, a KDAB Group company
Tel. Germany +49-30-521325470, Sweden (HQ) +46-563-540090
KDAB - Qt Experts - Platform-independent software solutions
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20120601/c9f53d14/attachment-0001.bin>
More information about the webkit-qt
mailing list