[webkit-qt] QImage vs QPixmap as native image

Jocelyn Turcotte jocelyn.turcotte at digia.com
Fri Sep 13 05:15:20 PDT 2013


On Fri, Sep 13, 2013 at 03:58:33PM +0400, Konstantin Tokarev wrote:
> Thank you for reply,
> 
> I was more interested in possible advantages of QImage over QPixmap in QtWebKit (not vice versa). For example, QPixmap does not allow direct manipulations with its pixel buffer which might be used to speed up some operations. I'm just wondering if such trick was an initial motivation for QPixmap -> QImage conversion.
> 
> (I'm not using X11 and I can get hardware blitting for QImage)

QPixmap::toImage and fromImage allow you to do almost everything you could do with a QImage directly. QPixmap stores an implicitely shared copy of the QImage internally.



More information about the webkit-qt mailing list