The Projects window is the main entry point to your projects. It shows a logical view of important project contents. You can open the Projects window by choosing Window > Projects (Ctrl-1).
You can view all of your project contents in a directory-based view in the Files window. To open the Files window, choose Window > Files (Ctrl-2).
A C or C++ Application or Library project is created with four logical folders, which are displayed in the Projects window:
A C or C++ Project from Existing Sources is created with one logical folder, Important Files.
A logical folder is not a directory. It is a way for you to organize your files, and does not reflect where the files are physically stored. Files added to the Source Files folder, Header Files folder, and other logical folders become part of a project and are compiled when you build the project. Note that header files added to the Header Files folder must be referenced in your C/C++ source files through #include statements in the usual way if you want them to be compiled into the program.
Files added to the Important Files folder are not part of the project and are not compiled when you build the project. These files are just for reference and are convenient for projects with existing makefiles.
The following icons are used for C and C++ projects in the Projects window.
Icon | Description |
---|---|
![]() |
C/C++ Project with Existing Sources |
![]() |
C/C++ Application Project |
![]() |
C/C++ Dynamic Library Project |
![]() |
C/C++ Static Library Project |
![]() |
C/C++ Qt Application Project |
![]() |
C/C++ Qt Dynamic Library Project |
![]() |
C/C++ Qt Static Library Project |
![]() |
Header Files Resource Files Source Files |
![]() |
Test Files |
![]() |
Important Files |
By default the toolbar buttons apply to the project that is selected. However, you can set one project to be the main project so that the toolbar buttons always apply to the main project, no matter which project is selected.
In the Projects window, if a main project has been set it is shown in bold. You can set any project as the main project by choosing Run > Set Main Project > projectname.
Each node in the Projects window has a pop-up context menu of commands that you can run on that node. You open a node's pop-up menu by right-clicking the node. The pop-up menu for project nodes contains all of the major project commands, like Build and Run. The pop-up menu also contains a Properties command, which you can use to configure your project.
See Also | |
---|---|
C/C++/Fortran Projects and Makefiles Files Window |