Create Qt projects

To create a project, select or create a preset for a particular project type:

  1. Go to Command Palette, and then select Qt: Create New Project.
  2. In New Project, enter a name for the project.

    {New Project dialog}

  3. In Terminal, select a preset or Manually select features to create your own preset.

    {Pick a preset in Terminal}

  4. Select a CMake kit for the project.

Project presets

Select one of the following project presets:

  • [Default] @projects/cpp/console creates a basic console application without a GUI.
  • [Default] @projects/cpp/qtquick creates a simple Qt Quick application with one QML file (.qml).
  • [Default] @projects/cpp/qwidget creates a simple Qt Widgets application with one form (.ui).
  • [Manually select features] creates a new preset with the default values you select.

Create a project preset

Select Manually select features to create a project preset with the following settings.

SettingPossible values
Project typeThe type of the project to create:
  • [Default] @projects/cpp/console
  • [Default] @projects/cpp/qtquick
  • [Default] @projects/cpp/qwidget
Qt versionThe Qt version you installed to develop applications with:
  • Qt 6
  • Qt 5
Use form?Whether to create a UI form for the project: Y (Yes) or N (No).
Use translation?Whether to add Qt translation source files (TS) to the project: Y (Yes) or N (No).
Target languageA language and territory (locale).
Save for later use?Whether to save the settings as a preset: Y (Yes) or N (No).
Enter the preset nameEnter a name for the preset. The preset list shows it at the top the next time you create a new project.

See also Tutorial: Qt Widgets application and Add files to 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.