Add a license header template for C++ code
Specify a file that has a license header for C++ in Preferences > C++ > File Naming > License template.
The license file may have special placeholders enclosed in %%
that are replaced when generating a new file:
%YEAR%
: Year%MONTH%
: Month%DAY%
: Day of the month%DATE%
: Date%USER%
: Username%FILENAME%
: File name%CLASS%
: Class name (if applicable)%$VARIABLE%
: Contents of environment variableVARIABLE
.
In addition, placeholders in the form %{..} are replaced by the value of the corresponding Qt Creator variable.
See also Use Qt Creator variables.