I think it’s reading it as javascript not as part of the delegate. I think you might want to change the role used by the delegate by doing something like:
styleData.role = “number”
This seems to not be very well documented. I inferred this from these two sources:
http://stackoverflow.com/questions/22874387/qml-tableview-access-model-properties-from-delegate
http://qt-project.org/doc/qt-5/qml-qtquick-controls-tableview.html#itemDelegate-prop
↧