Hi,

I need to get the whole web page content after receiving loadFinished() signal for that URL. I need to store the web page content in a string or a file and then use it to access some elements from the web page.
I have researched about this and tried:

Qt Code:
  1. QNetworkAccessManager manager;
  2. QNetworkReply *response = manager.get(QNetworkRequest(QUrl(url)));
  3. QEventLoop event;
  4. connect(response,SIGNAL(finished()),&event,SLOT(quit()));
  5. event.exec();
  6. QString html = response->readAll(); // Source should be stored here
To copy to clipboard, switch view to plain text mode 

But the string 'html' comes out as empty. Could anyone please help in this ? Maybe some alternate way to get the content ?