设置 C++ 文件命名首选项

当您使用新建文件向导为 C++ 项目中的新类创建 C++ 头文件和源文件时,头文件和源文件的名称将基于类名。要更改项目文件的默认后缀,请选择Projects >Project Settings >C++ File Naming

项目的 C++ 文件命名设置

License template 字段中,输入预定义的向导变量,指定源文件和头文件中使用的许可证路径和文件名。

要全局更改首选项,请选择首选项>C++ >File Naming

另请参阅 创建 C++ 类使用项目向导

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.