Open a terminal, navigate to the folder in which you want to create the project file, and then run the command
qmake -project
This will search for the current directory and all subdirectories for files with extensions such as .c , .cpp , .h , etc. (a complete list is found by typing man qmake ).
But keep in mind that it will overwrite your current .pro file if you already have a project.
source share