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

[Regression] Treeview qml control doesn't get filled with empty rows with alternate colors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.12.9
    • Quick: Controls 1
    • None
    • Linux/X11, Windows

      The name and version number of your compiler : VS2017

      Qt version : 5.12.9

      The name and version number of your operating system: Windows 10 and Ubuntu 16.04 LTS

      Observed that with Qt 5.12.9 if we have QML treeview with or without model, it doesn't get filled with empty rows delegates which it used when tried on Qt 5.6.3
      Please refer test attached test application.

      On investigating found there is one check for rowFillter element in "QtQuick\Controls\Private\BasicTableView.qml" which is causing this issue.

      For rowFiller column
      Qt5.6.3 => height: viewport.height - listView.contentHeight
      Qt5.12.9 => height: listView.model && listView.model.count ? (viewport.height - listView.contentHeight) : 0

      console.log("QML basictableview", listView, listView.model , listView.count , listView.model.rowCount(), listView.model.count)
      output is ,
      "qml: QML basictableview QQuickListView_QML_16(0x22587cb8960) QQuickTreeModelAdaptor1(0x2258a8b5f10) 8 8 undefined"

      The listView.model.count appears to be undefined always which needs to be replaced by either listView.count or listView.model.rowCount().

       testtreeview.zip

       

        1. testtreeview.zip
          2 kB
          Shriram Kulkarni
        2. treeview_not_filled_with_emptyrows.PNG
          21 kB
          Shriram Kulkarni
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            shriram.kulkarni Shriram Kulkarni
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes