Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-12155

HorizontalListViews are not rendered properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • Qt Creator 3.1.0
    • Quick Designer
    • None
    • 0e43633183ad9bbf90424faef51dc7af952687d8

    Description

      Horizontal ListViews are not rendered properly, while vertical ListView are rendered fine.

      import QtQuick 2.2
      
      Rectangle {
          width: 200
          height: 200
      
      
          ListView {
              id: listView1
              x: 0
              y: 10
              width: 279
              height: 100
              orientation: ListView.Horizontal
              model: ListModel {
                  ListElement {
                      name: "Grey"
                      colorCode: "grey"
                  }
      
                  ListElement {
                      name: "Red"
                      colorCode: "red"
                  }
      
                  ListElement {
                      name: "Blue"
                      colorCode: "blue"
                  }
      
                  ListElement {
                      name: "Green"
                      colorCode: "green"
                  }
              }
              delegate: Item {
                  x: 5
                  height: 40
                  Row {
                      id: row1
                      Rectangle {
                          width: 40
                          height: 40
                          color: colorCode
                      }
      
                      Text {
                          text: name
                          font.bold: true
                          anchors.verticalCenter: parent.verticalCenter
                      }
                      spacing: 10
                  }
              }
          }
      }
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-12155
        # Subject Branch Project Status CR V

        Activity

          People

            thohartm Thomas Hartmann
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes