[Qt-interest] Demo Browser and Qt::Concurrent query

Thiago Macieira thiago at kde.org
Wed Jan 20 07:55:35 CET 2010


Em Quarta-feira 20. Janeiro 2010, às 06.27.42, Nitin Mahajan escreveu:
> Am I missing something while using QtConcurrent or that is not the right
> operation to be shifted to a new thread? Can I get some pointers towards
> this?

You're using it wrong there.

You're using a QNetworkReply object from a thread that it doesn't belong to 
(that's not allowed) and you're doing GUI operations from a thread, which is 
also not allowed.

You can open a file and write to it in a thread. But you may not do GUI and you 
may not read from the QNetworkReply in it.

-- 
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/20100120/b120722b/attachment.bin 


More information about the Qt-interest-old mailing list