edit SideBar

Main / Qt

Copy and Rename a Project

  1. Copy the entire project source folder (cp -a foo bar)
  2. Go inside the folder and remove the setting files (rm
  3. Rename the project file and resource file (mv; mv foo.qrc bar.qrc)
  4. Open the new project in Qt Creator
  5. 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.

Page last modified on May 24, 2023, at 07:25 PM