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

SetLookup crashes on hierarchy of shadowable properties

XMLWordPrintable

    • 452929cea (dev), 9c69fa709 (6.7), 2dada30a4 (6.6), de4764e43 (dev), dfa7c42d9 (6.7)

      Consider:

      import QtQml
      
      QtObject {
          id: self
      
          component Inner : QtObject {
              property QtObject shadowable
          }
      
          component Outer : QtObject {
              property Inner inner: Inner {}
          }
      
          property Outer outer: Outer {}
      
          Component.onCompleted: {
              outer.inner.shadowable = self
              Qt.quit()
          }
      }
      

      Result:

      ASSERT: "metaObject" in file /home/qt/qt6dev-src/qtdeclarative/src/qml/qml/qqml.cpp, line 1442
      

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

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: