[Qt-interest] QtConcurrent::run results in random crashes
Thiago Macieira
thiago at kde.org
Tue Jul 27 23:53:49 CEST 2010
On Tuesday 27. July 2010 17.18.39 Justus Best wrote:
> QPair<QPixmap, QString> createData(QString file, QSize size)
> {
> return qMakePair(QPixmap(file).scaled(size), file);
> }
Your problem is you're using QPixmap. QPixmap is a GUI element and it cannot
be used outside the GUI thread.
--
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/20100727/3e12e161/attachment.bin
More information about the Qt-interest-old
mailing list