Qt modifies the default build path

It can be seen that the projects built by qt after the default situation are all at the same level as the original project, and it seems very inconvenient if there are more projects
insert image description here

At this time, I think that the construction of this project should be placed in the directory of this project, not at the same level. The specific settings are as follows:

insert image description here

insert image description here

As shown in the above path, the previous default ../indicated that it was under the upper level folder, we only need to change it ./to put it under the folder of the current project. Then the name can be customized. I removed the name of the build suite from the name to make it shorter and clearer.

Then be sure to click [Apply]. Then close Qt Creator, and then delete the .pro.user that was automatically generated in the original file.
Then reopen Qt Creator and rebuild, and you can find that the new build content is in the form you want.
As shown in the picture: the construction content is placed in the project, and you're done!
insert image description here

Tips: If it is not successful, for .pro, the .pro.user that was automatically generated before may not be deleted. For cmakelist, the previous CMakeLists.txt.user has not been deleted. Should be completely removed and rebuilt!

Guess you like

Origin blog.csdn.net/changyana/article/details/128877529