uhm yes i guess i use a function in a class to test the connection but after QApplication

Qt Code:
  1. int main(int argc, char *argv[])
  2. {
  3.  
  4. QApplication a(argc, argv);
  5. Q_INIT_RESOURCE(resources);
  6. CMain w;
  7.  
  8. if( !w.createConnection() )
  9. return 1;
  10. w.show();
  11. a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
  12. return a.exec();
  13.  
  14. }
To copy to clipboard, switch view to plain text mode