I am getting this error when I run my code:

URL.Host = edition.cnn.com
URL.Path = /services/podcasting/newscast/rss.xml
Object::connect: No such slot PodcastFeed::FeedReadData(const QHttpResponseHeader &) in podcastfeed.cpp:25
Object::connect: No such slot PodcastFeed::FeedRequestFinished( int, bool) in podcastfeed.cpp:26
ConnectionId = 2
(Internal error: pc 0x6241a0 in read in psymtab, but not in symtab.)
(Internal error: pc 0x6241a0 in read in psymtab, but not in symtab.)
(Internal error: pc 0x6241a1 in read in psymtab, but not in symtab.)
(Internal error: pc 0x6241a0 in read in psymtab, but not in symtab.)
(Internal error: pc 0x6241a0 in read in psymtab, but not in symtab.)

Can someone give me a hand I am using QTCreator and QT 4.6.

Here is my header:

Qt Code:
  1. #ifndef PODCASTFEED_H
  2. #define PODCASTFEED_H
  3. #include <QObject>
  4. #include <QString>
  5. #include <QtNetwork>
  6. #include <QHttp>
  7.  
  8. class PodcastFeed : public QObject
  9. {
  10. Q_OBJECT
  11.  
  12. public:
  13. PodcastFeed();
  14. int id;
  15. QString title;
  16. QString description;
  17. QString url;
  18. QString action;
  19. int actionInt;
  20. int sortOrder;
  21.  
  22. QString feedTitle;
  23. QString feedDescription;
  24.  
  25. void Load();
  26. void DownloadFeed(QString url);
  27. void FeedReadData(const QHttpResponseHeader &resp);
  28. void FeedRequestFinished( int id, bool error);
  29.  
  30.  
  31.  
  32. private:
  33. bool completed;
  34. int connectionId;
  35. QHttp http;
  36. QXmlStreamReader xml;
  37. void ParseXml();
  38. };
  39. #endif // PODCASTFEED_H
To copy to clipboard, switch view to plain text mode 

and here is the function I am having difficulty with.

Qt Code:
  1. void PodcastFeed::DownloadFeed(QString url)
  2. {
  3. xml.clear();
  4. QUrl myUrl(url);
  5. http.setHost(myUrl.host());
  6. Util::WriteLine("URL.Host = " + myUrl.host());
  7. Util::WriteLine("URL.Path = " + myUrl.path());
  8.  
  9. QObject::connect(&http, SIGNAL(readyRead(const QHttpResponseHeader &)), this, SLOT(FeedReadData(const QHttpResponseHeader &)));
  10. QObject::connect(&http, SIGNAL(requestFinished( int, bool)), this, SLOT(FeedRequestFinished( int, bool)));
  11. connectionId = http.get(myUrl.path());
  12. Util::WriteLine("ConnectionId = " + QString::number(connectionId));
  13. // Proceeds to FeedReadData when read.
  14. }
  15.  
  16. void PodcastFeed::FeedRequestFinished( int id, bool error)
  17. {
  18. Util::WriteLine("GotRequestFinished");
  19. }
  20.  
  21. void PodcastFeed::FeedReadData(const QHttpResponseHeader &resp)
  22. {
  23. Util::WriteLine("FeedReadData");
  24. if (resp.statusCode() != 200)
  25. http.abort();
  26. else {
  27. xml.addData(http.readAll());
  28. ParseXml();
  29. }
  30. }
To copy to clipboard, switch view to plain text mode