[Qt-interest] QCoreApplication derived class' slots not being called
Andrea Franceschini
therealmorpheu5 at gmail.com
Fri Jan 23 12:30:13 CET 2009
2009/1/21 Thiago Macieira <thiago.macieira at trolltech.com>:
> You haven't told us yet why you want to override exec().
Sorry, you're right. Foolishly I thought it was clear but it seems
that I only have a partial view of the problem.
My application is a command line process that listens for network
messages sent by a particular client. For this I have a separate class
to which I have a reference inside Glyphs::Application. The problem is
that this Listener class doesn't launch a new thread, it just relies
on the application staying up by itself. All the demos I saw of this
application are built around SDL (for them having the need to also
display things on the screen) which has an event loop mechanism that
basically works as a busy waiting loop.
As you may know, QCoreApplication usually starts up, does its things
and then gracefully terminates. What I wanted to achieve is to create
a QCoreApplication derived application (so that I don't have gui stuff
around which I don't really need) that behaves in the fashion of a
QApplication derived application.
I hope I made my point clearer. Now, does anybody have ideas?
Thanks
More information about the Qt-interest-old
mailing list