an image provider named "colors", and the images to be loaded are "yellow"
and "red", respectively:
- \snippet qml/imageprovider/imageprovider-example.qml 0
+ \snippet quick/imageprovider/imageprovider-example.qml 0
When these images are loaded by QML, it looks for a matching image provider
and calls its requestImage() or requestPixmap() method (depending on its
requested by the above QML. This implementation dynamically
generates QPixmap images that are filled with the requested color:
- \snippet qml/imageprovider/imageprovider.cpp 0
+ \snippet quick/imageprovider/imageprovider.cpp 0
\codeline
- \snippet qml/imageprovider/imageprovider.cpp 1
+ \snippet quick/imageprovider/imageprovider.cpp 1
To make this provider accessible to QML, it is registered with the QML engine
with a "colors" identifier: