Can we bind a value back?
-
When you assign @x = 20@ then you are eoverridding the originalo binding @x: parent.width /2@ You can not have x at 20 and half the width of the parent at the same time.
You might want to use anchors whenever possible. They are more efficient than bindings and allow for some really fancy layouts.
-
[quote author="Deqing" date="1296375893"]Is it possible to make it bind back to the parent's width again?[/quote]
You can establish a new binding using PropertyChanges, or in the future (it isn't possible with QtQuick 1.0) from script as well (http://bugreports.qt.nokia.com/browse/QTBUG-14964).
Regards,
Michael