Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.7.3, 4.7.4, 5.0.0
-
None
-
Linux
-
ea6590aa (qtquick1).
Description
There is an example like this:
int main(int argc, char *argv[])
{ ... QDeclarativeEngine engine; engine->addImageProvider(QLatin1String("colors"), new ColorPixmapProvider); ... }engine is not a pointer, so if it's really correct to create the engine in main's local scope, it should be engine.addImageProvider here.
Attachments
For Gerrit Dashboard: QTBUG-20747 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
52418,2 | Doc: Fix faulty code snippet in QDeclarativeEngine class reference | stable | qt/qtquick1 | Status: MERGED | +2 | 0 |