-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
None
-
5f7bf058412ff8800f966cbde3dba56cdf99e773
The documentation for VisualDataModel is not very clear about how to use rootIndex statically.
In my case, I wanted to expose a QAbstractListModel to QML. This requires that you set rootIndex, but it was not readily apparent how I should do so.
It seems like I should set it as follows, but I am still not quite sure.
ListView {
model: VisualDataModel {
model: myExposedQAbstractListModel
rootIndex: modelIndex(0)
}
}