PDA

View Full Version : How to load the content of a html link into a QStringList



mut
30th October 2015, 01:28
Hello

I have a main html page which contains links.

Main File: http://path1/path2/mainfile.html
Link1
Link2

How to programmatically load the text content under Link1 (http://path1/path2/file1.html) and Link2 (http://path1/path2/file2.html) into a QStringList?

Can I keep the links as links if says, file1 contains also some links?

Thanks in advance for the hints;

Mut.

jefftee
30th October 2015, 03:27
You will have to use QNetworkAccessManager, QNetworkRequest, QNetworkReply to do a QNetworkAccessManager::get request for each link and then read the response from each get request.