[Qt-interest] Is "on" a QML keyword?
Thiago Macieira
thiago at kde.org
Tue Jun 28 06:44:14 CEST 2011
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110628/5b5f84aa/attachment.bin
More information about the Qt-interest-old
mailing list