Hey,
for a little project of mine, i've build a little dialog.

Now, when the dialog finishes, the dialog's buttonBox should send out the accept () signal.

Qt Code:
  1. bool acceptedConnection = connect (
  2. this->dialog, SIGNAL (accepted ()),
  3. this, SLOT (dataFilledIn())
  4. );
  5.  
  6. qDebug ( acceptedConnection?
  7. "acceptedConnection made":
  8. "acceptedConnection FAILED"
  9. );
  10. //connecting rejectedConnection
  11. bool rejectedConnection = connect (
  12. this->dialog->buttonBox, SIGNAL (rejected ()),
  13. qApp, SLOT (closeAllWindows())
  14. );
  15.  
  16. qDebug ( rejectedConnection?
  17. "rejectedConnection made":
  18. "rejectedConnection FAILED"
  19. );
To copy to clipboard, switch view to plain text mode 
As you can see, i'm connecting everything in exacly the same way. But for some reason,
dataFilledIn () never gets called. The debugger tells me nothing about this; connect returns true.

The following is the header file. I hope you can find something that i've missed.

thanks in advance!
Qt Code:
  1. #ifndef DATADOWNLOADER_H
  2. #define DATADOWNLOADER_H
  3. #include <QWidget>
  4. class HTTPObject;
  5. class TorpiaAnalyserSettings;
  6. class mainwindow;
  7.  
  8. class DataDownloader : public QWidget {
  9. Q_OBJECT
  10. public:
  11. DataDownloader (QWidget *);
  12. public slots:
  13. void dataFilledIn ();
  14.  
  15. void usernameUpdated (QString );
  16. void passwordUpdated (QString );
  17. void intervalUpdated (int);
  18. void maxRequestUpdated (int);
  19. void rankStartUpdated (int);
  20. void rankEndUpdated (int);
  21.  
  22. void useDownload (int);
  23.  
  24. private:
  25. HTTPObject * downloader;
  26. TorpiaAnalyserSettings * dialog;
  27. mainwindow * window;
  28.  
  29. void connectSignals (int);
  30. public: /*properties*/
  31. QString username;
  32. QString password;
  33. int interval;
  34. int maxRequest;
  35. int rankStart;
  36. int rankEnd;
  37.  
  38. };
  39.  
  40. #endif
To copy to clipboard, switch view to plain text mode