[SailfishDevel] SDK auto setter/getter

Dylan Van Assche dylan.van.assche at protonmail.com
Fri Oct 27 16:03:53 UTC 2017


Hi,

I'm rewriting my Sailfish OS apps with a C++ backend by following the encapsulation rules.
This implies that I need a get/set for each C++ class so I searched online if QtCreator cannot generate these automatically and it should do it: https://stackoverflow.com/questions/21142940/how-to-make-getter-and-setter-methods-in-qt-creator-automatically
However, the Sailfish OS QtCreator doesn't seem to do this when I press ALT + ENTER on a member variable, the same for the Refactor option.

Is it disabled or am I doing something wrong?
Writing each setter/getter myself takes a lot of time...

Kind regards,
Dylan Van Assche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20171027/e271f2a8/attachment.html>


More information about the Devel mailing list