Results 1 to 12 of 12

Thread: Parse RSS into html and display it in QWebView.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #12
    Join Date
    Aug 2007
    Posts
    166
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    16
    Thanked 14 Times in 14 Posts

    Default Re: Parse RSS into html and display it in QWebView.

    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.
    Last edited by The Storm; 14th August 2010 at 13:30.

Similar Threads

  1. Html page Display in QWebView
    By Tavit in forum Qt Programming
    Replies: 4
    Last Post: 10th July 2010, 16:39
  2. Reg QWebview Display
    By Tavit in forum Qt Programming
    Replies: 0
    Last Post: 5th August 2009, 16:19
  3. How to save a Qwebview as an html file
    By richardander in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2009, 01:07
  4. Best way to load and parse an HTML file ??
    By tuthmosis in forum Qt Programming
    Replies: 8
    Last Post: 23rd August 2008, 12:06
  5. Display '<' as HTML in QString
    By mclark in forum Qt Programming
    Replies: 4
    Last Post: 6th July 2007, 22:43

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.