Unsolved Regarding trying to rename the project file
-
Hi,
Was trying to rename the project file through context menu on right click on .pro file,
Rename option is disabled, cant we rename in that way?.Other way i tried was open in the respective folder , rename the project file and then open again in Qt creator.
is rename option disabled for project file to rename,
i am able to rename the other files, header and source.Thanks,
-
Hi
Yes the rename is disabled for the pro file.
Im not sure why as its pretty good at renaming other files.Luckily its an infrequent action and doing it outside is pretty easy.
-
from when its been disabled for .pro file.?.
Thanks,
-
@Pradeep-Kumar
I never saw it enabled for any Creator I have used. -
That means it was the existing behavior of Qt creator.
Thanks,
-
This question comes from time to time: https://bugreports.qt.io/browse/QTCREATORBUG-540
Looks like a good students project to implement. The base functionality is there, but there might be some traps, e.g. renaming build directories.
-
@aha_1980
Its not trivial on Windows as if any file locked in the build folder, you cant rename it.
Also, lots of code for something that you can do very fast anyway
Right click -> Show In explorer
Right click -> Close project
Rename project, db click it to reopen/reopen in used project list. -
That's what I meant with "there might be some traps".
But if you rename the project, you might also want to rename the folder containing the project and the TARGET line within the pro file. If it can be done by the IDE automatically, no one will complain :)
Note that Creator 4.4 will have class renaming and allows renaming the file that contains the class [1]. It just took some time to implement :) -
@aha_1980
Oh, that is super nice. Only thing i miss from the Refactor menu.