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.

"File Naming preferences"

The license file may have special placeholders enclosed in %% that are replaced when generating a new file:

  1. %YEAR%: Year
  2. %MONTH%: Month
  3. %DAY%: Day of the month
  4. %DATE%: Date
  5. %USER%: Username
  6. %FILENAME%: File name
  7. %CLASS%: Class name (if applicable)
  8. %$VARIABLE%: Contents of environment variable VARIABLE.

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.