C++コード用のライセンスヘッダーテンプレートを追加する

Preferences >C++ >File Naming >License template 内の、C++用ライセンスヘッダーを含むファイルを指定します。

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.