[Qt-interest] QThread vs QTimer for polling
Stephen Collyer
scollyer at netspinner.co.uk
Mon Mar 1 11:19:11 CET 2010
On 1 March 2010 05:12, Mandeep Sandhu <mandeepsandhu.chd at gmail.com> wrote:
>
> It can take anywhere from 500 msec to ~3sec for the results to be
> available.
>
> Thats why, I wanted to know if thread approach would be better or the
> main app using a timer to monitor the status?
>
>
This seems to imply that the Qt event loop may be blocked for
up to 3s, in which case it sounds like you need to run this code
in a separately schedulable entity (thread or process).
--
Stephen Collyer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100301/5e7a6981/attachment.html
More information about the Qt-interest-old
mailing list