QML code style

Marco Martin notmart at gmail.com
Thu Jan 20 20:30:35 CET 2011


On Thursday 20 January 2011, Ivan Čukić wrote:
> Hi all,
> 
> I think this would be essential to decide before we dive into QML deeper.
> 
> We're all used to kdelibs style when C++ is concerned, so our code is
> generally unified all across different parts of KDE Code. QML is a new
> area which nobody (with the exception of Marco and a few other ppl)
> has had an experience with, so without some style guidelines, we'll
> end up with totally unreadable code.

yup. that's really important indeed, thanks for bringing it up.

qt has a (quite scarce) conventions document
http://doc.qt.nokia.com/4.7/qml-coding-conventions.html
what it says here is generally good, but doesn't say that much.

iirc this was discussed in the QtComponents ml as well some time ago, i don't 
know what the results were, the thread died rather quickly.

Artur, do you know something more about coding conventions used internally for 
QML/QtComponents? if sensible we could just steal, ehm, i mean adopt them ;)

Cheers,
Marco Martin


More information about the Plasma-devel mailing list