[Solved]QML Var
QML and Qt Quick
8
Posts
3
Posters
2.5k
Views
1
Watching
-
Yes. Just search for "QML basic types".
Variant exists in QtQuick 1 ("link":http://qt-project.org/doc/qt-4.8/qml-variant.html).
QtQuick 2 introduces a better equivalent called var ("link":http://qt-project.org/doc/qt-5.0/qtqml/qml-var.html).
-
There are no functions. It is a JS variable: it can contain any objects.
-
Note that, you should use "var" instead of "variant".
"QML Basic Type: var":http://qt-project.org/doc/qt-5/qml-var.html
(sorry, I hadn't seen sierdzio's replies when I replied)
-
Then you should search for JavaScript array documentation, not "var" docs. "Link":http://www.w3schools.com/jsref/jsref_obj_array.asp.