\li To use functionality defined in a C++ source (for example, when using a C++ Qt-based data model, or
calling functions in a third-party C++ library)
\li To access functionality in the Qt Declarative module (for example, to dynamically generate
-images using QQmlImageProvider)
+images using QQuickImageProvider)
\li To write your own QML elements (whether for your applications, or for distribution to others)
\endlist
#include <qqmlextensionplugin.h>
#include <qqmlengine.h>
-#include <qqmlimageprovider.h>
+#include <qquickimageprovider.h>
#include <QImage>
#include <QPainter>
//![0]
-class ColorImageProvider : public QQmlImageProvider
+class ColorImageProvider : public QQuickImageProvider
{
public:
ColorImageProvider()
- : QQmlImageProvider(QQmlImageProvider::Pixmap)
+ : QQuickImageProvider(QQuickImageProvider::Pixmap)
{
}
TEMPLATE = lib
CONFIG += qt plugin
-QT += qml
+QT += qml quick
DESTDIR = ImageProviderCore
TARGET = qmlimageproviderplugin
QDeclarativeFontLoader=QQuickFontLoader\
QDeclarativeFontValueType=QQmlFontValueType\
QDeclarativeGuard=QQmlGuard\
- QDeclarativeImageProvider=QQmlImageProvider\
+ QDeclarativeImageProvider=QQuickImageProvider\
QDeclarativeImports=QQmlImports\
QDeclarativeIncubationController=QQmlIncubationController\
QDeclarativeIncubator=QQmlIncubator\
QT.qml.plugins = $$QT_MODULE_PLUGIN_BASE
QT.qml.imports = $$QT_MODULE_IMPORT_BASE
QT.qml.depends = gui network xmlpatterns
-QT.qml.DEFINES = QT_QML_LIB
+QT.qml.DEFINES = QT_QML_LIB QQmlImageProvider=QQuickImageProvider
QT_CONFIG += qml
AnimatedImage can handle any image format supported by Qt, loaded from any
URL scheme supported by Qt.
- \sa QQmlImageProvider
+ \sa QQuickImageProvider
*/
/*!
The URL may be absolute, or relative to the URL of the component.
- \sa QQmlImageProvider
+ \sa QQuickImageProvider
*/
/*!
size bounded via the \l sourceSize property. This is especially important for content
that is loaded from external sources or provided by the user.
- \sa {declarative/imageelements/image}{Image example}, QQmlImageProvider
+ \sa {declarative/imageelements/image}{Image example}, QQuickImageProvider
*/
QQuickImage::QQuickImage(QQuickItem *parent)
The URL may be absolute, or relative to the URL of the component.
- \sa QQmlImageProvider
+ \sa QQuickImageProvider
*/
/*!
"qdeclarativeextensioninterface.h" => "QtQml/qqmlextensioninterface.h",
"QDeclarativeExtensionPlugin" => "QtQml/QQmlExtensionPlugin",
"qdeclarativeextensionplugin.h" => "QtQml/qqmlextensionplugin.h",
- "QDeclarativeImageProvider" => "QtQml/QQmlImageProvider",
- "qdeclarativeimageprovider.h" => "QtQml/qqmlimageprovider.h",
+ "QDeclarativeImageProvider" => "QtQuick/QQuickImageProvider",
+ "qdeclarativeimageprovider.h" => "QtQuick/qquickimageprovider.h",
"QDeclarativeIncubationController" => "QtQml/QQmlIncubationController",
"QDeclarativeIncubator" => "QtQml/QQmlIncubator",
"qdeclarativeincubator.h" => "QtQml/qqmlincubator.h",
"qv8worker_p.h" => "QtQml/private/qv8worker_p.h",
"textwriter_p.h" => "QtQml/private/textwriter_p.h",
},
+ "QtQml" => {
+ "QQmlImageProvider" => "QtQuick/QQuickImageProvider",
+ "qqmlimageprovider.h" => "QtQuick/qquickimageprovider.h",
+ },
);
# Module dependencies.
# Every module that is required to build this module should have one entry.