Add files to projects

To create a new file, select a preset for a particular file type:

  1. Go to Command Palette, and then select Qt: Create a new project or file.
  2. In File, select the file type.

    {New item view}

  3. In Name, enter a name for the file.
  4. In Create in, enter the path for the file.
  5. In Options, set options depending on the file type.
  6. Select Create to create the file.
  7. Edit the new file's content.

You can create custom presets with the options you select.

See also Tutorial: Qt Widgets application and Create Qt projects.

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