Hi,

I've been trying to use a QSpinBox in my project. I would like to use the signal "valueChanged(int i)" (as described in the documentation), but at runtime QObject::connect complains that there is no such signal ;-(

I thought that something with my code was wrong. But even the following small application is suffering the same problem:
Qt Code:
  1. #include <QtGui>
  2. #include <QApplication>
  3.  
  4. int main(int argc, char **argv)
  5. {
  6. QApplication app(argc, argv);
  7.  
  8.  
  9. QObject::connect(
  10. &sB, SIGNAL(valueChanged(int i)),
  11. &app, SLOT(quit())
  12. );
  13.  
  14. sB.show();
  15. return app.exec();
  16. }
To copy to clipboard, switch view to plain text mode 


I'm using QT 4.2.0 for Windows and MingW.

Can anyone spot the point where my mistake is? I'm really getting mad about this.