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

ListView highlight delegate cannot access ListView attached properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.1.1
    • None
    • 1061c7e5cfae88a336f1327cc20b2d8a0a3c6015

    Description

      The following code works in QtQuick 1.1 (4.8) but not in QtQuick 2.0 (5.1)

      import QtQuick 2.1
      
      ListView {
        width: 400
        height: 400
        focus: true
      
        model: 100
        delegate: Text {
          text: modelData
        }
        highlight: Rectangle {
          width: ListView.view.width
          color: "yellow"
        }
      }
      

      untitled.qml:13:26: TypeError: Result of expression is not an object

      Attachments

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

        Activity

          People

            aalpert Alan Alpert
            njeisecke Nils Jeisecke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes