Aggiungere un modello di intestazione di licenza per il codice C++

Specificare un file contenente un'intestazione di licenza per C++ in Preferences > C++ > File Naming > License template.

Scheda "Denominazione file" nelle preferenze di C++

Il file di licenza può contenere segnaposto speciali racchiusi tra %% che vengono sostituiti durante la generazione di un nuovo file:

  1. %YEAR%: Anno
  2. %MONTH%: Mese
  3. %DAY%: Giorno del mese
  4. %DATE%: Data
  5. %USER%: Nome utente
  6. %FILENAME%: Nome del file
  7. %CLASS%: Nome della classe (se applicabile)
  8. %$VARIABLE%: Contenuto della variabile d'ambiente VARIABLE.

Inoltre, i segnaposto nella forma %{..} vengono sostituiti dal valore della corrispondente variabile Qt Creator.

Vedi anche Utilizzo delle variabili 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.