21.12.2018, 18:41, "Jason H" <jh...@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 _______________________________________________ Development mailing list Development@qt-project.org https://lists.qt-project.org/listinfo/development