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

createQmlObject crashes if filepath is set to something that has colon but is not known protocol

    XMLWordPrintable

Details

    • 164af37710e5721cbc7d79a0af20f2387181c59c

    Description

      Following code reproduces this issue in about 90% of cases:

      Qt.createQmlObject('import QtQuick 2.4; Rectangle {}', top, 'nonprotocol:');
      

      Occasional warnings:

      qrc:/main.qml:11: Error: Qt.createQmlObject(): Component is not ready
      

      Attachments

        1. qtbug45418_stack.txt
          6 kB
        2. qtbug45418.patch
          5 kB
        3. qtbug45418.tar.gz
          0.8 kB

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              poikelin Joni Poikelin
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes