[Qt-interest] Is "on" a QML keyword?
NoRulez
norulez at me.com
Tue Jun 28 07:17:52 CEST 2011
Thanks for the answers.
Does a list of QML keywords/reserved words exist?
Am 28.06.2011 um 06:44 schrieb Thiago Macieira <thiago at kde.org>:
> Em Monday, 27 de June de 2011, às 23:23:21, charles.yin at nokia.com escreveu:
>> QML automatically creates onSomePropertyChanged kinds of slots for all
>> QObject properties which have notify signals. So you can write code like
>> this:
>>
>> Rectangle {
>> onXChanged : { console.log("x:" + x}
>> onYChanged : { console.log("y:" + y}
>> }
>>
>> I guess (probably wrong) that's why qt creator puts "on" into the keyword
>> list.
>
> It's more likely to be from:
>
> Behaviour on x {
> }
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> PGP/GPG: 0x6EF45358; fingerprint:
> E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list