[Qt-interest] please help me with this problem
Thiago Macieira
thiago at kde.org
Wed Dec 9 08:39:16 CET 2009
Em Quarta-feira 9. Dezembro 2009, às 03.31.46, Yifei Li escreveu:
> It seems like calling w->wait() not only blocks the worker thread, but also
> the whole application, thus preventing the application from updating the
> displayed message. But I'm still not quite sure about this, do you have a
> better answer?
w->wait() doesn't block the worker thread at all. It blocks the calling thread
(in this case, the GUI one) until the worker thread finishes executing.
I suggestion you simply don't call wait() and change the connection to
QueuedConnection (or AutoConnection). Right now, you're calling update() from
the worker thread, which isn't allowed.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20091209/38c29afa/attachment.bin
More information about the Qt-interest-old
mailing list