Copy and Rename a Project
- Copy the entire project source folder (cp -a foo bar)
- Go inside the folder and remove the setting files (rm foo.pro.user)
- Rename the project file and resource file (mv foo.pro bar.pro; mv foo.qrc bar.qrc)
- Open the new project in Qt Creator
- Open up main.cpp and change the project name in the line, if present
Q_INIT_RESOURCE(foo); //old
Q_INIT_RESOURCE(bar); //new
Change the name of the project anywhere else needed in the code, such as menu text, setApplicationName, etc.