PDA

View Full Version : Howto select/show a QWebElement in QWebview



nightghost
25th August 2010, 16:57
I've written a small html traversal tool like http://doc.qt.nokia.com/4.6/webkit-domtraversal.html But now I want, that the preview jumps on a click in the treeview to the selected element (Not just highlight like in http://doc.qt.nokia.com/4.6/webkit-simpleselector.html)

I've found nothing in the API to achieve this. Did I miss something?

nightghost
2nd September 2010, 12:51
Ok, my solution is now to traverse trough the dom and setting an id if the node has no id. Clicking in the treeview just opens the same html page with that id as fragment <url>l#id