[Qt-interest] Signal is emitted but slot is not executed

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Sun Oct 10 16:27:39 CEST 2010


> When the worker thread receives a message, it calls a method of the main
> thread; this method emits a signal connected to a slot to update the GUI(so,
> signals are emitted by the worker thread and slots are executed in GUI
> thread). Qt::connect() returns true.

What type of connection are you making with the connect() call? Is it
auto/direct/queued ? Are you running an event loop for the thread? If
not then I guess signal-slots won't be called for auto/queued
connections.

HTH,
-mandeep


>
> At runtime, after a short time, CPU occupation starts increasing and the GUI
> is updated slower than one time 2 seconds.
> At that time I noticed:
>
> upon message receiving the sgnal is emitted but the relative slot is not
> executed
> timer fires no more
>
>
> Could anyone explain to me why?
>
> Thanks in advance
> Valentina
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>




More information about the Qt-interest-old mailing list