[Qt-interest] QCoreApplication derived class' slots not being called

Andrea Franceschini therealmorpheu5 at gmail.com
Sat Jan 24 17:04:10 CET 2009


Maybe I found a feasible solution which seems to me feasible and
doesn't require to override QCoreApplication::exec().

int main(int argc, char** argv) {
   Application a(argc, argv);
   int r = a.exec();
   a.thread()->wait();
   return r;
}

It has the expected behaviour, but is this the right way to go?
Otherwise I'd have to create an additional thread for the Listener
class which would reintroduce the problem of making it idling.



More information about the Qt-interest-old mailing list