[Qt-interest] QCoreApplication derived class' slots not being called
Andrea Franceschini
therealmorpheu5 at gmail.com
Sat Jan 24 17:39:10 CET 2009
Well, it seems that I made some terrible mistake somewhere. When I
first created the Qt Console Application empty project (I'm using
qt-eclipse integration), the main function was like
int main(int argc, char** argv) {
QCoreApplication a(argc, argv);
return a.exec();
}
and the application just started up and then suddenly terminated,
which behaviour led me to believe that I had to derive
QCoreApplication and make there all the things that I needed.
Then came my first email and now I'm in this situation: Application
(which derives QCoreApplication) isn't overriding anymore exec(), it
does everything it needs (such as loading config file, setting up the
Listener class, creating the worker thread that's started as often as
needed etc...) and to my great surprise
int main(int argc, char** argv) {
Application a(argc, argv);
return a.exec();
}
works the way I initially needed. I am obviously missing some crucial
point somewhere and the lack of in-depth documentation doesn't really
help.
Do you have any other comment? Anyway thanks a lot for your time.
More information about the Qt-interest-old
mailing list