QML code style

Marco Martin notmart at gmail.com
Thu Jan 20 21:18:40 CET 2011


On Thursday 20 January 2011, Ivan Čukić wrote:
> > qt has a (quite scarce) conventions document
> 
> Yes, it covers a bit specific stuff where the more important things
> are not present.
> 
> The thing currently on my mind is the following - if the Qt examples
> and the mentioned page are to be followed - we'd end up with something
> like this:
> 
>     property string title
> 
>     Text {
>         id: title
>     }
> 
> Which sucks :)
> 
> (for the time being, I started naming things like I used to name
> widgets in normal UIs - id:textTitle - for Text type, imageIcon for
> Image type etc.)
> 
> Cheerio.

also, i always wanted to write a style guide for that stuff, from code to UI, 
i guess i should move my lazy ass and do it;)

Cheers,
Marco Martin


More information about the Plasma-devel mailing list