将文件添加到项目中
要创建新文件,请为特定文件类型选择一个预设:
- 转到“Welcome ”,然后选择“New project ”。
- 在“File ”中,选择文件类型。

- 在“Name ”中,为文件输入名称。
- 在“Create in ”中,输入文件的路径。
- 在“Options ”中,根据文件类型设置选项。
- 选择“Create ”以创建文件。
- 编辑新文件的内容。
您可以使用所选选项创建自定义预设。
另请参阅 《教程:Qt Widgets 应用程序》和《创建 Qt 项目》。
© 2026 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.