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

Thiago Macieira thiago.macieira at trolltech.com
Fri Jan 23 22:17:39 CET 2009


Andrea Franceschini wrote:
>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?

Yes.

But I haven't seen anything that would require reimplementing exec(). You 
can use the standard one from QCoreApplication.

-- 
Thiago Macieira - thiago.macieira (AT) nokia.com
  Senior Software Engineer - Nokia, Qt Software
  Qt Software is hiring - ask me
      Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090123/29cf6337/attachment.bin 


More information about the Qt-interest-old mailing list