Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
5.2.0
-
None
-
01fab234c6b0c8b770a8567e8beb0f4f6f9bc4be
Description
Here is example: http://qt-project.org/doc/qt-5/qquickimageprovider.html#an-example
QQmlEngine engine; engine->addImageProvider(QLatin1String("colors"), new ColorPixmapProvider);
This code will not compile. And if we change '->' to '.' it still useless.
I think better example is:
QtQuick2ApplicationViewer viewer; // or other main class viewer.engine()->addImageProvider(QLatin1String("colors"), new ColorPixmapProvider);
Attachments
For Gerrit Dashboard: QTBUG-38456 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
106064,2 | Doc: fix example | 5.4 | qt/qtdeclarative | Status: MERGED | +2 | 0 |