timmu
23rd August 2009, 11:40
I'd like to know how many bytes a website contains (let's say www.google.com).
I think I need to use QWebPage and bytesReceived() for that. However, I don't know how to specifify the URL for it.
This is what I have:
QWebPage * page = new QWebPage();
//missing code here
int bytes = page->bytesReceived();
but how do I specify the website URL to be opened for this?
I think I need to use QWebPage and bytesReceived() for that. However, I don't know how to specifify the URL for it.
This is what I have:
QWebPage * page = new QWebPage();
//missing code here
int bytes = page->bytesReceived();
but how do I specify the website URL to be opened for this?