Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
5.5.0
-
None
Description
- download this example http://doc.qt.io/qt-5/qtquickcontrols-filesystembrowser-example.html
- add code that relies on some variable, for example currentIndex
TableViewColumn { title: "Test" width: 100 delegate: Rectangle { function isParentOf(parent, child) { while(child.parent != "QModelIndex()") { if(parent === child.parent) { return true; } child = child.parent; } return false; } color: (styleData.selected || isParentOf(styleData.index, view.currentIndex)) ? "red" : "blue" //color: (view.currentIndex === styleData.index) ? Qt.rgba(Math.random(), Math.random(), Math.random(), 1.0) : Qt.rgba(Math.random(), Math.random(), Math.random(), 1.0) border.width: styleData.selected ? 2 : 0 } }
- expand any item, select subitem, collapse item
- currentIndex changed but only items below collapsed item (not even collapsed item itself) reacts