Projects

The Projects view displays projects in a project tree. The project tree contains a list of all projects open in the current session. For each project, the tree visualizes the build system structure of the project and lists all files that are part of the project.

In the Edit and Debug mode, the Projects view is displayed in the sidebar. It has a toolbar with additional options:

"Projects view in the sidebar"

To filter view contents, select (Filter Tree):

  • Simplify Tree hides the categories and sorts project files alphabetically.
  • Hide Generated Files hides the source files that are automatically generated by the build system.
  • Hide Disabled Files hides the source files that are not enabled for the current target,
  • Hide Empty Directories hides directories that do not contain any files.
  • Show Source and Header Groups shows source and header files grouped together in the view, regardless of their location in the file system.

To stop synchronizing the position in the project tree with the file currently opened in the editor, deselect (Synchronize with Editor).

Some build systems support adding and removing files to a project in Qt Creator (currently qmake and Qbs). The faithful display of the project structure allows to specify exactly where a new file should be placed in the build system. If the project is under version control, information from the version control system might be displayed in brackets after the project name. This is currently implemented for Git (the branch name or a tag is displayed) and ClearCase (the view name is displayed).