Lol you are unbelievable! You have the source code and still you don't know how to display the HTML page that the XML is pointing to? I guess that you even haven't give a little effort to understand how the example works. Anyway here is my hint:
Take a look at the parseXml() method, you will see the line "if (xml.name() == "item")" that is adding items with the URL to the QTreeWidget, just use this URLs to put them in QWebView and make it load them. It is that simple...
Now I see that it is even easier, there is itemActivated(QTreeWidgetItem * item) slot that open the URL in external browser, you can add your code there to open it in QWebView.




Reply With Quote
Bookmarks