
Originally Posted by
Brandybuck
But many of the QSql classes will, as they are meant to be used in a Qt application.
In fact SQL support will not work in its most common configuration (using plugins) without QCoreApplication, as it is the application object that is responsible for loading and initialising plugins. If you don't have an application object and you try to add a database to your program, you'll end up with a "Driver not loaded" message.

Originally Posted by
fellobo
Okay, I am not entirely sure what is going on with my code.
That's not a good thing 
But, I removed all my functions but one, that included the QCoreApplication, and then ran it and got a new set of errors; the first error came in from BOOST and then all my QT errors. So, from this I came to the conclusion that the BOOST isn't cleaning up the memory like I think it was and will not bother the wonderful QT developers with this question.
Try investigating the below program for leaks:
int main(int argc, char **argv){
wgt.show();
return app.exec();
}
int main(int argc, char **argv){
QApplication app(argc, argv);
QWidget wgt;
wgt.show();
return app.exec();
}
To copy to clipboard, switch view to plain text mode
Why couldn't you have three different CoreApplication running? I am thinking, in theory, that you could have two threads that each thread would have a core application.
Why would it need a "core application"? Each thread can have its own event loop (using QThread::exec()), so I don't see a point in having more than one application object.
Don't get me wrong - I hear the words, duh you can only have 1 CORE application that is why they call it CORE..... and then in the back of my mind I think yea but why not have many core application? Maybe I am just frustrated by this bug.
My suggestion is to read the docs a little at what the application object does.
Bookmarks