QML code style

Ivan Čukić ivan at matf.bg.ac.rs
Thu Jan 20 20:59:26 CET 2011


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

-- 
While you were hanging yourself on someone else's words
Dying to believe in what you heard
I was staring straight into the shining sun


More information about the Plasma-devel mailing list