Hey there, I'm completely new to this forum! I'm coming here because I'm having an issue in my Qt code, and my beginner skills aren't helping me a lot...

I'm trying to send a request to get the content of a tumblr blog, at "kauritree.tumblr.com/api/read". The file I should get is an XML file, so I created a class that is in charge of downloading the file, and transforming it in whatever I want. I just cant get the QNetworkAccessManager.get(request) to be working... and I dont know why. The GET request is not even sent (I checked using Wireshark)... Thank you for your help!

here is my code:

main.cpp:
Qt Code:
  1. QUrl qUrl;
  2. qUrl.setUrl("http://kauritree.tumblr.com/api/read/");
  3. ListeXml listeXml;
  4. listeXml.downloadd(qUrl);
To copy to clipboard, switch view to plain text mode 

my ListeXml.cpp
Qt Code:
  1. ListeXml::ListeXml(QObject *parent) :
  2. QObject(parent)
  3. {
  4. }
  5.  
  6. QString ListeXml::downloadd(QUrl url)
  7. {
  8. DownloadManager manager;
  9. manager.doDownload(url.toString());
  10. }
To copy to clipboard, switch view to plain text mode 

DownloadManager.cpp
Qt Code:
  1. DownloadManager::DownloadManager() //Constructor
  2. {
  3. QObject::connect(&manager, SIGNAL(finished(QNetworkReply*)),SLOT(downloadFinished(QNetworkReply*)));
  4. }
  5.  
  6. void DownloadManager::doDownload(QString Url)
  7. {
  8. QUrl url;
  9. url.setUrl(Url);
  10. const QNetworkRequest request(url);
  11. QNetworkReply *reply = manager.get(request);
  12. }
To copy to clipboard, switch view to plain text mode