We should actually use var instead of variant everywhere in our QML files.
Source : http://qt-project.org/doc/qt-5.0/qtqml/qml-variant.html