[Qt5-feedback] Immutable QPixmaps

Samuel Rødal samuel.rodal at nokia.com
Fri May 13 16:48:37 CEST 2011


On 05/13/2011 04:31 PM, ext Tom Cooksey wrote:
> One design feature I remember would have been quite nice in Qt4 was to
> have the concept of immutable QPixmaps and possibly QImages too. That
> way, you can use a compressed texture as a QPixmap and never have to
> worry that someone might at a later date open a painter on it.

QPixmap will probably not play a big role in QtQuick2, scene graph 
currently does explicit texture management on its own (with the 
QSGTexture etc classes).

There's also the option to make custom scene graph nodes where you 
supply a raw texture id directly (using QSGSimpleTextureNode).

--
Samuel


More information about the Qt5-feedback mailing list