[Development] Braces (was Resolving coding style contentions)
Konstantin Tokarev
annulen at yandex.ru
Fri Dec 21 16:47:36 CET 2018
21.12.2018, 18:41, "Jason H" <jhihn at gmx.com>:
> This is probably hijacking your post, but I've always found it bad style to have different conventions for C++ and QML.
>
> //C++ convention
> int Class::memberF()
> {
>
> }
>
> //QM convention:, compressed is used:
> Rectangle {
> onVisibleChanged: {
> ....
> }
> }
The former is a method declaration, while the latter is a property initialization with lambda expression as a value
--
Regards,
Konstantin
More information about the Development
mailing list