But yes I do in to the my application, it is the first thing I do:
int main(int argc, char *argv[])
{
// code...
return app.exec();
}
int main(int argc, char *argv[])
{
QApplication app( argc, argv );
// code...
return app.exec();
}
To copy to clipboard, switch view to plain text mode
But when I load the DLL using QLibrary to resolve a C exported function and when the times come for the DLL to create any kind of GUI it crashes with the error that I wrote above. Maybe I have to initialize QApplication again in to the DLL ? But then I will have two event loops and perhaps the GUI created via the DLL will be modal but I do not want to be modal. Any solution will be highly appricated.
Bookmarks