[solved] copying/renaming a project
Page |
1 |
Hi –
Before I go off and clobber anything, I thought I’d ask here: is there a guide (or cheat sheet or anything) to renaming projects and/or copying them? I want to use one project as the basis for another. This will entail modifying pathnames, names of of the finished program and so on.
I already know that I’ll need to change the build directory in Projects->Build. How do I go about renaming the executable…is that done by renaming the .pro file?
Thanks.
17 replies
How do I go about renaming the executable…is that done by renaming the .pro file?
Have a look at target [doc.qt.nokia.com]
Oh, I don’t necessarily mind using the .pro file. It’s just that since it was apparently built without an entry there, I was wondering whether I could preserve the way that the executable was named. Mostly for academic curiosity.
Anyway, if I go ahead and change the .pro file, and the build directory, is that it? Or is there more that I’ll need to do? There are no absolute pathnames in any of my code.
OK, so maybe a recommended procedure (if it’s not documented elsewhere, this might help someone later) is:
1. copy the directory structure.
2. delete the .pro.user file
3. change the build directory in Projects->Build
4. modify the name of the .pro file if desired (or edit the TARGET tag in the .pro file)
5. run qmake
Did I leave anything out?
You must log in to post a reply. Not a member yet? Register here!


