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

Bug in qqmlimport when loading qml plugins with initializeEngine

    XMLWordPrintable

    Details

    • Commits:
      cf51cdb8fb002ae3602a4c886e7c67913d77373a

      Description

      In QQmlImportDatabase::importPlugin when passing the uri to
      ep->typeLoader.initializeEngine(eiface, moduleId);
      it uses
      const char *moduleId = uri.toUtf8().constData();

      to convert to a utf8 char*. This does not work, as the underlying QByteArray is destroyed as soon as the function call is done.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            w00t Robin Burchell
            Reporter:
            madwinter Marcus T
            Votes:
            4 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes