[Qt-qml] Changes to pixmap loading for image elements
bea.lam at nokia.com
bea.lam at nokia.com
Fri Jul 9 09:24:54 CEST 2010
Hi,
The Image::pixmap property has been removed as it can cause memory issues, as noted in http://bugreports.qt.nokia.com/browse/QTBUG-11980.
To improve support for pixmap loading (for both Image and BorderImage), we have extended QDeclarativeImageProvider to enable it to serve QPIxmaps as well as QImages. QPixmaps are automatically loaded synchronously, whereas QImages can be loaded either synchronously or asynchronously.
For example, something like this:
Image { source: "image://someprovider/someimage.png" }
causes the QML engine to look up the image provider named "someprovider" and request it to load a QPixmap or QImage for the identifier "someimage.png".
More details can be found in the revised QDeclarativeImageProvider documentation and the example in examples/declarative/cppextensions/imageprovider.
regards,
Bea
More information about the Qt-qml
mailing list