Use wizard templates to add individual files to your projects.
To add files to projects, select File > New File, and then select the type of the file.
Note: You can also use the
f locator filter to create a new file and open it in the editor. For more information, see Creating Files and Directories from Locator. However, you must manually add the created file to a project.
The following table lists the types of wizard templates that you can use for creating files. The New File dialog shows detailed information about each file wizard template.
|Header and source files for new classes.
|State Chart XML (SCXML) files, Universal Modeling Language (UML) style models, and scratch models that use a temporary file.
|Example setup for using Compiler Explorer to compile C++ or Python code.
|OpenGL fragment and vertex shaders.
|Markdown files, empty files that you can save with any filename extension, and scratch buffers that use temporary files.
|Class and script files for Python projects.
|vcpkg package manager manifest files (vcpkg.json).
|Empty Nim source and script files.
© 2024 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.