[Qt-interest] QtConcurrent run issues

Thiago Macieira thiago at kde.org
Mon Jun 13 17:34:37 CEST 2011


Em Monday, 13 de June de 2011, às 14:40:27, você escreveu:
> Thanks, but I dont think I want to use a static function right?  My function
> requires knowledge of what is in that instance of the class.
> 
> Is there any way to do this as the functions are defined?

Yes, but you need an extra argument:

QFuture<void> future = QtConcurrent::run(this, 
	&ImagePixmapItem::LoadTilePixmap, this);

PS: please reply to the mailing list, not to me. (use Reply to List, not Reply 
to All)
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
      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/20110613/693da120/attachment.bin 


More information about the Qt-interest-old mailing list