[Qt-interest] Is "on" a QML keyword?
Girish Ramakrishnan
girish at forwardbias.in
Tue Jun 28 14:39:37 CEST 2011
None that I know of. The closest thing is qdeclarativejs.g in the Qt
source/src/declarative/parser. However, I wouldn't rely on that
completely because there are keywords like 'alias' which are not
implemented like keywords.
Girish
On Tue, Jun 28, 2011 at 10:47 AM, NoRulez <norulez at me.com> wrote:
> 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
> _______________________________________________
> 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