Home · All Classes · All Functions · Overviews

QML ParentChange Element Reference

The ParentChange element allows you to reparent an Item in a state change. More...

Properties

Detailed Description

ParentChange reparents an Item while preserving its visual appearance (position, rotation, and scale) on screen. You can then specify a transition to move/rotate/scale the Item to its final intended appearance.

ParentChange can only preserve visual appearance if no complex transforms are involved. More specifically, it will not work if the transform property has been set for any Items involved in the reparenting (defined as any Items in the common ancestor tree for the original and new parent).

You can specify at which point in a transition you want a ParentChange to occur by using a ParentAction.


Property Documentation

parent : Item

This property holds the parent for the item in this state


target : Item

This property holds the item to be reparented



Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.7.0