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
<[email protected]>wrote:
>
> On 19 July 2010 19:05, Eduardo Fleury <[email protected]>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
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-qml
>
>
--
Eduardo M. Fleury
OpenBossa - INdT
http://eduardofleury.com/
http://www.openbossa.org/
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-qml