On sábado, 10 de novembro de 2012 18.08.27, Igor Mironchik wrote:
> 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?!

QEventLoop loop;
loop.connect(thatObject, SIGNAL(theSignal...), SLOT(quit());
loop.exec();

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to