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

[Reg 6.2.12->6.5.5] Assertion when using "required objectName" with ListElement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.5.5-1, 6.7.0 RC2
    • None

    Description

      Code

      import QtQuick
      
      Window {
          id: root
          width: 640
          height: 480
          visible: true
      
          ListView {
              anchors.fill: parent
              model: ListModel {
                  ListElement { objectName: "Apple" }
                  ListElement { objectName: "Banana" }
              }
              delegate: Text {
                  required objectName
                  text: objectName
              }
          }
      }
      

       

      Outcomes

      ASSERT: "!target.isBindable()" in file C:/Users/qt/work/qt/qtdeclarative/src/qml/qml/qqmlanybinding_p.h, line 237
      

       

      Notes

      • The expected text is still displayed in the delegate if the assertion is ignored
      • required objectName triggers the assertion; required property string objectName works fine

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes