[Interest] Which thread implementation is best to trigger external library via timers

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Thu Apr 10 12:01:56 CEST 2014


> A example looks like:
> Timer to ping the server on regular basis:
> - QTimer::timeout connected to slot sendPing();
> - when the pong is received, the signal void pongReceived is emitted, this
> can be evaluated by the application.
>
> But as said, there are methods in the worker, I need return data
> immediately, e.g. getKnownServers, isConnected etc.
> Your answer helped me already a lot. Thank you very much. So I'll go for
> this approach.

You've chosen the right option of moveToThread() then.

Good luck,
-mandeep



More information about the Interest mailing list