Hi,

QML supports declaring object properties with a type "var".  Behind the scenes 
this actually creates a QVariant property, which behave similarly but not 
identically to a JavaScript "var".  To reduce confusion, the QML type has been 
renamed to "variant".  Code that wrote:

Item {
    property var a
}

should now read:

Item {
    property variant a
}

Once this change makes it into the master branch there will be a grace period 
where both are supported (the "var" case will print a distracting warning of 
course) of around a week.

Cheers,

Aaron
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml

Reply via email to