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

Importing wrong QtQuick version results in crash

XMLWordPrintable

      The code below runs fine, except when the "import QtQuick 1.1" is changed to "import QtQuick 1.0" in BlueRect.qml it results in a "The program has unexpectedly finished." crash.

      Main.qml

      import QtQuick 1.0
      Item {
          width: 640
          height: 480
      
          YellowRect {
              anchors.centerIn: parent
          }
      }
      

      BlueRect.qml

      import QtQuick 1.1 // Change this to 1.0 and the application crashes
      Rectangle {
          color: "blue"
          width:  200
          height: 200
      }
      

      YellowRect.qml

      import QtQuick 1.1
      BlueRect {
          color: "yellow"
      
          implicitWidth: 100
          implicitHeight: 100
      }
      

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

            aakenned Aaron Kennedy
            mathiasm Mathias Malmqvist
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes