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

Binding to typed QML component property crashes

    XMLWordPrintable

Details

    • 9db3ec26136aa7a7ea58c85c92f5c6288e50e8f5 (qt/qtdeclarative/dev)

    Description

      Binding a QML object to a typed property via a Binding object causes a crash.

      Given I have the following QML file MyComponent.qml:

      import QtQuick 2.3
      QtObject { property real p: 0 }
      

      Then the following QML scene crashes:

      import QtQuick 2.3
      Item {
          id: root
          property MyComponent myProperty
          Binding {
              target: root
              property: "myProperty"
              value: myObject
          }
          MyComponent { id: myObject }
      }
      

      It does not crash when I change the type of property myProperty from MyComponent to var.

      Attachments

        For Gerrit Dashboard: QTBUG-40487
        # Subject Branch Project Status CR V

        Activity

          People

            shausman Simon Hausmann
            che Carsten Henßinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes