property int foo=696/10 evaluates to 70, not 69 as I expected. QML appears to do a round rather than a truncate when assigning a real expression to an int. Easy to fix by subtracting 0.5 but more to the point, is this intended behavior? I could not find anything in the documentation that describes how it should behave.
Interestingly "property int foo=69.6" fails but "property int foo=696/10.0" doesn't. -Alistair
_______________________________________________ Qt-qml mailing list Qt-qml@qt.nokia.com http://lists.qt.nokia.com/mailman/listinfo/qt-qml