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

ListView.view attached property does not work with VisualItemModel

    XMLWordPrintable

Details

    • 8bedba8ecb9cde3de68defea3e2b062504224aa6

    Description

      I have to explicity supply the width here:

      import Qt 4.7
      
      Rectangle {
        width : 500
        height : 500
      
        VisualItemModel {
          id : items
          Rectangle {
            width : 100 //ListView.view.width
            height : 30
            color : "red"
          }
          Rectangle {
            width : 100 //ListView.view.width
            height : 30
            color : "green"
          }
          Rectangle {
            width : 100 //ListView.view.width
            height : 30
            color : "blue"
          }
        }
      
        ListView {
          width : 100
          height : 100
          model : items
        }
      
      }
      

      Attachments

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

        Activity

          People

            martjone Martin Jones (closed Nokia identity) (Inactive)
            steveire Stephen Kelly (Personal)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes