Results 1 to 2 of 2

Thread: How to load the content of a html link into a QStringList

  1. #1
    Join Date
    Apr 2014
    Posts
    125
    Qt products
    Qt5 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Android Maemo/MeeGo

    Question How to load the content of a html link into a QStringList

    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.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: How to load the content of a html link into a QStringList

    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.
    I write the best type of code possible, code that I want to write, not code that someone tells me to write!

Similar Threads

  1. Replies: 4
    Last Post: 17th April 2013, 20:47
  2. Load in memory the content of a database
    By franco.amato in forum Qt Programming
    Replies: 24
    Last Post: 3rd January 2011, 17:21
  3. Replies: 4
    Last Post: 9th August 2009, 01:04
  4. Load textfile content into a textEdit
    By gt.beta2 in forum Newbie
    Replies: 1
    Last Post: 3rd March 2009, 22:57

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.