Hi Volks,
I'm trying to connect some http signals... obviously, as all good newbies, it doesn't work...

Here is my class declaration

Qt Code:
  1. #include <Qt/qfile.h>
  2. #include <QtNetwork/QHttp>
  3. class ciao : public QObject
  4. {
  5. Q_OBJECT
  6.  
  7. public:
  8. ciao();
  9. ~ciao();
  10.  
  11. void Run();
  12. void tryFinished( int id, bool error );
  13. void tryReadProgress( int id, int total );
  14.  
  15. private:
  16. QFile myFile;
  17. QHttp *http;
  18. };
To copy to clipboard, switch view to plain text mode 

And here is what I'm doing in my constructor

Qt Code:
  1. http = new QHttp(this);
  2. myFile.setFileName("something.txt");
  3.  
  4. bool result;
  5. result = connect(http, SIGNAL(requestFinished(int, bool)),
  6. this, SLOT(tryFinished(int, bool)));
  7. result = connect(http, SIGNAL(dataReadProgress(int, int)),
  8. this, SLOT(tryReadProgress(int, int)));
To copy to clipboard, switch view to plain text mode 

But... result is alway false. It sounds like connect does not recognize my methods to be valid.

Where I'm doing wrong???????