[Qt-qml] "property var" becomes "property variant"
aaron.kennedy at nokia.com
aaron.kennedy at nokia.com
Fri Apr 9 06:07:26 CEST 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100409/ed733514/attachment.html
More information about the Qt-qml
mailing list