Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Regarding trying to rename the project file
Qt 6.11 is out! See what's new in the release blog

Regarding trying to rename the project file

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 3.7k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Pradeep KumarP Offline
    Pradeep KumarP Offline
    Pradeep Kumar
    wrote on last edited by Pradeep Kumar
    #1

    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,

    Pradeep Kumar
    Qt,QML Developer

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #3

        from when its been disabled for .pro file.?.

        Thanks,

        Pradeep Kumar
        Qt,QML Developer

        mrjjM 1 Reply Last reply
        0
        • Pradeep KumarP Pradeep Kumar

          from when its been disabled for .pro file.?.

          Thanks,

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Pradeep-Kumar
          I never saw it enabled for any Creator I have used.

          1 Reply Last reply
          0
          • Pradeep KumarP Offline
            Pradeep KumarP Offline
            Pradeep Kumar
            wrote on last edited by
            #5

            That means it was the existing behavior of Qt creator.

            Thanks,

            Pradeep Kumar
            Qt,QML Developer

            1 Reply Last reply
            0
            • aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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.

              Qt has to stay free or it will die.

              mrjjM 1 Reply Last reply
              1
              • aha_1980A aha_1980

                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.

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @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.

                1 Reply Last reply
                0
                • aha_1980A Offline
                  aha_1980A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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 :)

                  [1] https://codereview.qt-project.org/126882

                  Qt has to stay free or it will die.

                  mrjjM 1 Reply Last reply
                  1
                  • aha_1980A aha_1980

                    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 :)

                    [1] https://codereview.qt-project.org/126882

                    mrjjM Offline
                    mrjjM Offline
                    mrjj
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @aha_1980
                    Oh, that is super nice. Only thing i miss from the Refactor menu.

                    1 Reply Last reply
                    0

                    • Login

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Users
                    • Groups
                    • Search
                    • Get Qt Extensions
                    • Unsolved