How to define a StringList (QStringList)
-
wrote on 26 Feb 2012, 20:20 last edited by
Hello.
How can I create a Stringlist in a Qt Quick Application ?
@
property int xx:0 // this works
property int yy: 0 // this tooproperty qstringlist sl1: nil // error
@
How can I create a StringList, it should not be seen be the user, just a variable with data and the ability to add lines.
Thanks
-
wrote on 28 Feb 2012, 08:17 last edited by
qstringList is not a qml type.
If you want to use one only with qml, use javascript array, or from Cpp using setContextProperty(... and then you can use it with the model of a hidden ListView, for example.
1/2