[Qt-interest] Forcing a signal "emit" to be queued

Marat Abrarov abrarov at mail.ru
Mon Mar 21 11:08:34 CET 2011


I use ma::echo::server::qt::ServiceForwardSignal 

(http://asio-samples.svn.sourceforge.net/viewvc/asio-samples/trunk/include/m
a/echo/server/qt/serviceforwardsignal.h?revision=373&view=markup)

at mine ma::echo::server::qt::Service
(http://asio-samples.svn.sourceforge.net/viewvc/asio-samples/trunk/src/ma/ec
ho/server/qt/service.cpp?revision=373&view=markup)

to solve that problem.

In short:
I use (internally, in MyClass) another 
QObject-based class (SignalForwarder), 
whose signals are queued-connected to the MyClass signals.

When I need "queued-forcing" - I use SignalForwarder's methods
which emit needed signal. 

Regards, Marat Abrarov.




More information about the Qt-interest-old mailing list