Results 1 to 19 of 19

Thread: Rendered SourceCode from website

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2015
    Posts
    67

    Default Rendered SourceCode from website

    Hello,

    with QNetworkreply and readall() i can get the orginalsourcecode of a URL.

    But i need the rendered sourceCode which u can view with eg firebug. IS there any way to do that with qt?

    thx

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Rendered SourceCode from website

    Can you rephrase that?

    What is a "rendered source code"?

    Source code that is rendered syntax highlighted?
    Or do you mean the output of some rendering engine given a certain source code?

    Cheers,
    _

  3. #3
    Join Date
    Nov 2015
    Posts
    67

    Default Re: Rendered SourceCode from website

    modern websites are mosty scripted with javascript which adds content dynamically. When u click in your browser in such a website right-click view sourcecode it shows you the orginal-sourcode. When you view a website in firebug you see the "rendered" sourcecode with the added divs and stuff.

    I want the rendered sourcecode but i didn't find something in qt or c++ to achieve this. Can you help me there?

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Rendered SourceCode from website

    You could try loading the web content into a QWebView and then using QWebFrame::toHtml() to get the string representation of the frame's DOM tree.

    Cheers,
    _

Similar Threads

  1. Text rendered as squares
    By SeppeVanNolle in forum Qt for Embedded and Mobile
    Replies: 4
    Last Post: 9th November 2011, 15:17
  2. QFont is not rendered correctly in a different thread
    By PhilippM in forum Qt Programming
    Replies: 3
    Last Post: 21st March 2011, 19:39
  3. Accessing Menubar in the sourcecode.
    By baluk in forum Newbie
    Replies: 1
    Last Post: 18th November 2010, 20:25
  4. changing svg graphic attributes once rendered
    By barrygp in forum Qt Programming
    Replies: 0
    Last Post: 13th December 2008, 02:09
  5. Webkit rendered fonts
    By carl in forum Qt Programming
    Replies: 0
    Last Post: 5th September 2008, 16:49

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.