Revision control
++ // Copyright (C) 2017 The Qt Company Ltd.
++ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
++
++ /*!
++ \title C++ Extensions: Image Provider Example
++ \brief How to load images in QML with QQuickImageProvider.
++ \example imageprovider
++ \examplecategory {Graphics}
++
++ This example shows how to use QQuickImageProvider to serve images
++ to QML \l Image items, and how to package it into a \l QQmlEngineExtensionPlugin
++ which is detected and loaded at runtime. The plugin is then a reusable component
++ that can be installed into a system-wide location for use by multiple applications.
++
++ \image qml-imageprovider-example.png {Two color blocks labeled
++ yellow and red generated by the image provider}
++ */
++
++ It can be built and tested like this:
++ \code
++ $ qt-cmake .
++ $ cmake --build .
++ $ qml -I . imageprovider-example.qml
++ \endcode
++
++ Alternatively, a QQuickImageProvider intended for use in only one application
++ can simply be instantiated in \c main.cpp as documented.
++ */