Добавление шаблона заголовка лицензии для кода на C++

Укажите файл, содержащий заголовок лицензии для C++, в разделе « Preferences » > « C++ » > « File Naming » > « License template ».

Вкладка «Имена файлов» в настройках C++

Файл лицензии может содержать специальные заполнители, заключённые в символы %%, которые заменяются при генерации нового файла:

  1. %YEAR%: Год
  2. %MONTH%: Месяц
  3. %DAY%: День месяца
  4. %DATE%: Дата
  5. %USER%: Имя пользователя
  6. %FILENAME%: Имя файла
  7. %CLASS%: Имя класса (если применимо)
  8. %$VARIABLE%: Содержимое переменной среды VARIABLE.

Кроме того, заполнители в виде %{..} заменяются значением соответствующей переменной Qt Creator.

См. также раздел«Использование переменных Qt Creator ».

Copyright © The Qt Company Ltd. and other contributors. 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.