I have stripped out some stuff that sets up logging etc in my main, and it basically looks like this :-
int main( int argc, char** argv )
{
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
MainDialog dialog( 0, Qt::WindowMaximizeButtonHint | Qt::WindowMinimizeButtonHint );
dialog.exec();
printf( "We have reached the end\n" );
return 0;
}
int main( int argc, char** argv )
{
QApplication app( argc, argv );
qApp->setStyle( new QCleanlooksStyle() );
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
MainDialog dialog( 0, Qt::WindowMaximizeButtonHint | Qt::WindowMinimizeButtonHint );
dialog.exec();
printf( "We have reached the end\n" );
return 0;
}
To copy to clipboard, switch view to plain text mode
As I said previously, I load a number of shared objects (dll's in windows), which are the widgets I display in my widget stack.
On Linux, if I do not load the shared object, the app exits fine, but it seems the mere act of calling
NewPage.hinstLib = dlopen( Name.c_str(), RTLD_LAZY);
NewPage.hinstLib = dlopen( Name.c_str(), RTLD_LAZY);
To copy to clipboard, switch view to plain text mode
on one my shared objects, causes the app to get stuck.
BTW - This all works fine on windows, linux and solaris, with QT3.
Bookmarks