QDeclarativeItem modify anchor from C++
-
Is "this":http://bugreports.qt.nokia.com/browse/QTBUG-9677 what you are looking for.
-
Try using QDeclarativeProperty and QDeclarativeExpression.
For example, to set an object's 'anchors.bottom' to 'parent.bottom':
@
QDeclarativeContext *context = ...
QObject *myObject = ...QDeclarativeExpression expr(context, myObject, "parent.bottom");
QDeclarativeProperty prop(myObject, "anchors.bottom");
prop.write(expr.evaluate());
@