[Interest] Waiting for specific signal from another thread.

Bo Thorsen bo at fioniasoftware.dk
Sat Nov 10 17:06:31 CET 2012


Den 10-11-2012 16:08, Igor Mironchik skrev:
> Hi.
>
> I need some functionality to wait for a specific signal was emitted from
> another thread.
>
> I have QObject that works on his thread. From another thread I
> asynchronously provoke some method in this QObject. And then I need
> blocking mechanism that will wait untill this QObject will emit some
> signal. And I need to be sure that all connected to this signal slots
> were worked.
>
> How to implemet this in Qt? Any ideas?!

Use a QWaitCondition instead of signals and slots.

Bo Thorsen.

Come by my DevDays talk in Berlin - "Designing for testability". Learn how to build and run your unit tests with the Qt application.

Fionia Software - Qt experts for hire.




More information about the Interest mailing list