[Okular-devel] Slow painting on QImage

Tobias Koenig tokoe at kde.org
Thu Oct 26 15:01:50 CEST 2006


Hi,

after I've ported the OOo Generator to QImage yesterday I realized that
painting on the QImage was 3x slower than painting on the QPixmap.

Today I asked the Zack how this can happen and he explained that for
rendering the text, the X server is still queried in current version of
Qt4, so drawing text in a QImage is quite inefficient.

One solution is to do all the paiting on a QPixmap and to the convertion
to a QImage only once...

Another problem we came accross here is that painting to a QPixmap or
drawing text (which is rendered by X) is only allowed in the main thread!!!

So we have a real problem with threaded generators. The poppler
generator didn't hit this issue since it renders the font itself, or?

Ciao,
Tobias
-- 
Separate politics from religion and economy!
The Council of the European Union is an undemocratic and illegal institution!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20061026/33dd36f1/attachment.pgp 


More information about the Okular-devel mailing list