Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20747

code mistake in QDeclarativeEngine Class Reference doc

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.1.0
    • 4.7.3, 4.7.4, 5.0.0
    • Documentation
    • 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

        Activity

          People

            treinio Topi Reiniƶ
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes