Solved ListModel property and C++
-
Hi,
I'm working on my project, which is using QAbstract model. Currently I need to use properties in my model, like this:
ListModel {
id: fruitModel
property string language: "en"
}Is it possible to use such properties from C++ code?
-
See the documentation under the section "Accessing Members of a QML Object Type from C++".
-
Oops, thank you. I've thought that it's somewhere in QAbstract docs.