Hi all ,
Easy question , but I am in trouble "How can I rename the filename & projectname in Project ?" . Thank you !
Hi all ,
Easy question , but I am in trouble "How can I rename the filename & projectname in Project ?" . Thank you !
That doesn't seem to be easy in Qt Creator itself.
How to do it manually:
Always close your project first.
1. Changing the project name on Linux (other systems are almost the same)
Qt Code:
mv ./myProjectName.pro ./myNewProjectName.pro mv ./myProjectName.pro.user ./myNewProjectName.pro.userTo copy to clipboard, switch view to plain text mode
2. Changing a filename on Linux
Qt Code:
mv ./myFile.h ./myNewFileName.h --> edit myNewProjectName.pro and change all occurences of myFile.h to myNewFileName.hTo copy to clipboard, switch view to plain text mode
3. Replacing files
Similar, move it, edit the .pro file.
Afterwards, reopen your .pro file and everything is like you changed it.
This would be nice to have out of the box in Qt Creator though.
I have done it manully successfullly , but maybe it should be supported by qt creator later !
Last edited by Qzi; 21st August 2010 at 06:39.
I think Nokia should make this available too.
But, Qt Creator is very very easy to expand :-)
I don't think it would be very difficult for someone to write a plugin for renaming files.
It is a good idea ! But I'm a newer , How can I learn to write a plugin ? what's your point ? Thank you .
Bookmarks