[Qt-qml] behaviors example
michael.brasser at nokia.com
michael.brasser at nokia.com
Thu Jul 1 07:40:23 CEST 2010
Hi Gianni,
I think there are different 'levels' of reusable in QML. In the case of the behaviors example, SideRect is meant to be reusable as a component that is placed on the behaviors-example.qml canvas. In this case, having the upward dependancy seems fine, and even good to me -- I think it keeps the code simpler/cleaner. Of course, this approach wouldn't work for a truly generic reusable library component -- a button defined in a library definitely wouldn't be written to refer to its container like SideRect does.
Regards,
Michael
On 30/06/2010, at 7:57 PM, ext Gianni Valdambrini wrote:
> Hi,
> looking at the animation/behaviors-example I noticed that the SideRect
> component is not really reusable because it uses an external id named
> focusRect. I thought about a way of removing that dependency and
> attached is my solution. What do you think about it?
>
> Thanks,
> Gianni
> <behavior-example.qml><SideRect.qml><ATT00001..txt>
More information about the Qt-qml
mailing list