[Qt-interest] Is "on" a QML keyword?

kai.koehne at nokia.com kai.koehne at nokia.com
Wed Jun 29 08:36:47 CEST 2011


> -----Original Message-----
> From: qt-interest-bounces+kai.koehne=nokia.com at qt.nokia.com [mailto:qt-
> interest-bounces+kai.koehne=nokia.com at qt.nokia.com] On Behalf Of ext
> NoRulez
> Sent: Tuesday, June 28, 2011 7:18 AM
> To: Thiago Macieira
> Cc: qt-interest at qt.nokia.com
> Subject: Re: [Qt-interest] Is "on" a QML keyword?
> 
> Thanks for the answers.
> 
> Does a list of QML keywords/reserved words exist?

Hi,

http://bugreports.qt.nokia.com/browse/QTBUG-12602 contains QML grammar (download the attachment). Seems like it didn't make its way into the official documentation yet.

Regards

Kai
 
> 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