Quote Originally Posted by regix
The little application you posted ran fine on Gnome. It terminated like it should. My application also terminates but it shouldn't: after getting the color the program goes on ...
Either the problem lies in some other place or that example program was too simple.

Try this:
Qt Code:
  1. #include <qapplication.h>
  2. #include <qcolordialog.h>
  3. #include <qpushbutton.h>
  4.  
  5. class Test : public QPushButton
  6. {
  7. Q_OBJECT
  8. public:
  9. Test() : QPushButton( "test", 0 )
  10. {
  11. connect( this, SIGNAL( clicked() ), this, SLOT( onClick() ) );
  12. }
  13.  
  14. private slots:
  15. void onClick()
  16. {
  17. QColorDialog::getColor();
  18. }
  19. };
  20.  
  21. int main( int argc, char **argv )
  22. {
  23. QApplication app( argc, argv );
  24.  
  25. Test t;
  26. t.show();
  27.  
  28. app.setMainWidget( &t );
  29.  
  30. return app.exec();
  31. }
  32.  
  33. #include "main.moc"
To copy to clipboard, switch view to plain text mode 

Quote Originally Posted by regix
I commented this out but the same remark appears when I run the program....
There were at least two such warnings, so maybe one of them is gone, but you still see the other?