![]() |
Home · All Classes · All Functions · Overviews |
The AnchorChanges element allows you to change the anchors of an item in a state. More...
|
|
In the following example we change the top and bottom anchors of an item:
AnchorChanges {
target: content; top: window.top; bottom: window.bottom
}
AnchorChanges will 'inject' x, y, width, and height changes into the transition, so you can animate them as you would normally changes to these properties:
//animate our anchor changes
NumberAnimation { targets: content; properties: "x,y,width,height" }
For more information on anchors see Anchor Layouts.
| left : AnchorLine |
| right : AnchorLine |
| horizontalCenter : AnchorLine |
| top : AnchorLine |
| bottom : AnchorLine |
| verticalCenter : AnchorLine |
| baseline : AnchorLine |
These properties change the respective anchors of the item.
| target : Item |
This property holds the Item whose anchors will change
| Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.7.0 |