QtCreator - create only getter or only setter
-
wrote on 14 Feb 2016, 14:22 last edited by
Hi,
Is there a way to create only a getter/setter of field? I know that there is a option to create getter&setter, but I don't see something that would let me create ONLY getter or only setter.
Thanks for answer. -
Hi and welcome to devnet,
Do you mean that for Qt's property system ?
-
wrote on 15 Feb 2016, 11:25 last edited by
@SGaist I mean something like when you click on class field you have a menu called "Refactor", and after "Create getter and setter member function", but it crates getter and setter, when i want create only getter. Yes i can delete the setter from .h and .cpp file but it takes too much time when you have to create about 200 getters. :(
-
@SGaist I mean something like when you click on class field you have a menu called "Refactor", and after "Create getter and setter member function", but it crates getter and setter, when i want create only getter. Yes i can delete the setter from .h and .cpp file but it takes too much time when you have to create about 200 getters. :(
@morsisko
I have that in the context menu. Maybe you're using an older version of QtCreator (I have 3.6.0 here)?Kind regards.
-
@morsisko
I have that in the context menu. Maybe you're using an older version of QtCreator (I have 3.6.0 here)?Kind regards.
wrote on 16 Feb 2016, 22:01 last edited by@kshegunov Many thanks, i had the eariler version of qtCreator.
1/5