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.

_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to