Details
-
Bug
-
Resolution: Won't Do
-
P2: Important
-
None
-
6.7.2
Description
See the attached example to reproduce the issue.
MyGrid.qml has the following readonly properties:
readonly property MyDelegate castedCurrentItem: (grid.currentItem as MyDelegate)
readonly property var currentItem: grid.currentItem
The first returns null in the test case tst_Grid:
tryVerify(function () { return myGrid.castedCurrentItem !== null //return myGrid.currentItem !== null //this works fine })