[Qt-qml] access child transform

Daker Pinheiro daker.pinheiro at openbossa.org
Mon May 2 19:05:28 CEST 2011


You can use alias properties to do that.

Cheers,

On Mon, May 2, 2011 at 12:26 AM, Tibo W <tibo_wcc at yahoo.com> wrote:

> Hi,
>
> Inside a NumberAnimation, can I access the transform of an item's child ?
> Like:
>
> ViewPort {
>
>   itemA {
>     child1 { transform: [
>            Rotation3D {
>             id: rotateItem
>            }
>           ]
>        }
>     child2 { }
>   }
>
>   itemB {
>
>    NumberAnimation {
>     target: itemA.children[0].rotateItem // ??
>    }
>  }
>
> }
>
> I can access properties like x, y etc, but it seems that I can't access the
> transform...
>
>
> And, how can I lock the position on an Item3D ? I don't want it to move
> when I moving the screen with the mouse ?
>
> Thanks for your help
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>
>


-- 
Daker Fernandes Pinheiro
openBossa
INdT - Instituto Nokia de Tecnologia
Blog: http://codereal.blogspot.com
Twitter: @dakerfp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110502/86f7a7d8/attachment.html 


More information about the Qt-qml mailing list