Creator: Template file for new class?
Solved
Qt Creator and other tools
-
When I create a new class in Creator, I'd like it to be part of a specific namespace. Is there a way to add/modify a template for newly created classes, so the class is created inside a namespace (and I can add other stuff, as needed)?
-
Hi @Asperamanca,
it's documented here.
-
@Asperamanca Well, for your use case it might be enought to edit the template
file.cpp
... -
@aha_1980
Do the templates come with the default installation of Creator? Because I can't even find the templates folder (at least not where the docs say it should be).
Or do I just create the template files in the location they are supposed to be?Found it. Not where the docs say, but instead in the folder of the Qt installation (tools/QtCreator/share/qtcreator/templates)