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

TableView: contentHeader disappears after scrolling

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • 5.1.0 RC1
    • 5.1.0 Beta 1
    • Quick: Controls 1
    • None

    Description

      See test case:

      import QtQuick 2.1
      import QtQuick.Controls 1.0
      
      ApplicationWindow {
          width: 360
          height: 500
          ListModel {
              id: mymodel
              Component.onCompleted: {
                  for (var i = 0; i < 400; i++)
                      append({ name: "Ted " + i,  age: i, hair: "blond"})
              }
          }
          TableView {
              id: table
              anchors.fill: parent
              model: mymodel
              TableViewColumn {
                  title: "Name"
                  role: "name"
              }
              TableViewColumn {
                  title: "Age"
                  role: "age"
              }
              contentHeader: Rectangle { width: parent.width; height: 20; color: "red"}
          }
      }
      

      1 - scroll down (with mouse wheel or handle)
      2 - scroll up to header
      => problem: the contentHeader is not shown anymore
      If you scroll to the end, you will see an extra space at the end of the view

      Attachments

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

        Activity

          People

            bachewii Jens
            carochao Caroline Chao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes