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

Details

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

    Description

      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

       

      Attachments

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

        Activity

          People

            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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes