Solved Template for new C++ Class?
-
Hi all,
Is there a way to better customize a template for creating new c++ class for the project? Much like when saying I want my class to inherit QObject it automatically adds the correct includes and fills in the parent class and adds the constructor components as well.
When I use the <Custom> class it only fills in the parent class as :public <Custom> but does not include header and set up constructors properly - I have to do that manually every time. Is there a way I can automate this part when generating new C++ classes that inherit my custom class?
Thanks in advance,
-Shawn -
@MrShawn Looks like QTCREATORBUG-3855 ;)
-
Nooooooooo!!!!!!
lol
Oh well I am just making a template.h and template.cpp and I am just copy and pasting and replacing all Template->MyClass... That seems to work okay for now.
Thanks!
-
@MrShawn Feel free to join the discussion at this bug, funnily it has recent activity despite beeing 8 years old.
-
I did add something, it is really weird that just today others have put comments... Thanks!