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

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.9
    • Fix Version/s: None
    • Component/s: Quick: Controls 1
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            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