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
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
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,
_
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?
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,
_
Bookmarks