Set C++ file naming preferences

When you use the new file wizard to create a C++ header and source file for a new class in a C++ project, the names of the header and source file are based on the class name. To change the default suffix of a file for a project, select Projects > Project Settings > C++ File Naming.

{C++ File Naming settings for a project}

In the License template field, enter predefined wizard variables to specify the path and filename of the license to use in the source and header files.

To globally change the preferences, select Preferences > C++ > File Naming.

See also Create C++ classes and Use project wizards.

© 2023 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.