[Qt-qml] QML: RotationAnimation fails to start

Eduardo Fleury eduardo.fleury at openbossa.org
Mon Jul 19 20:19:56 CEST 2010


Sure, like you were setting a callback. It makes sense.

What happens however is that onClicked itself is an implicit function like
in

onClicked: {
    do_something()
    var x = 1
    do_somethingelse()
}

While the braces can be omitted in the simple case, the idea is the same.


On Mon, Jul 19, 2010 at 3:14 PM, Stephen Collyer
<scollyer at netspinner.co.uk>wrote:

>
> On 19 July 2010 19:05, Eduardo Fleury <eduardo.fleury at openbossa.org>wrote:
>
>> (sorry, I didn't CC the list)
>>
>>
>> Hi there!
>>
>> "rot.start" is a function, that means you must call it using parenthesis
>>
>>         onClicked: rot.start*()*
>>
>> BR,
>>
>>
> Right. It's been too long since I wrote any JS. I was thinking of function
> references.
>
> --
> Stephen Collyer
>
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>


-- 
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100719/77585097/attachment.html 


More information about the Qt-qml mailing list