Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.9
-
None
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) : 0console.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().