uhm yes i guess i use a function in a class to test the connection but after QApplication
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(resources);
CMain w;
if( !w.createConnection() )
return 1;
w.show();
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Q_INIT_RESOURCE(resources);
CMain w;
if( !w.createConnection() )
return 1;
w.show();
a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()));
return a.exec();
}
To copy to clipboard, switch view to plain text mode
Bookmarks