Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Cannot rename directory in QtCreator

Cannot rename directory in QtCreator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 4 Posters 708 Views
  • 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.
  • M Offline
    M Offline
    Mark81
    wrote on 27 Oct 2021, 04:22 last edited by
    #1

    It seems a very simple question but I didn't find an answer in the old threads.
    I'm using QtCreator 5.0.2 under Ubuntu 20.04.

    In the project tree there are several directories: some for sources (i.e. "src", "qml", "include", etc...) some in Other Files ("configs", "images", etc...).

    I'm not able to rename them.
    The popup menu (right-click) does not provide a "rename" action for the folders but for files only.
    If I try to rename the folder on the file-system QtCreator does not detect the changes and the file cannot be opened anymore.

    So... what is the correct way to rename a directory in the project tree?

    J 1 Reply Last reply 27 Oct 2021, 05:13
    0
    • M Mark81
      27 Oct 2021, 04:22

      It seems a very simple question but I didn't find an answer in the old threads.
      I'm using QtCreator 5.0.2 under Ubuntu 20.04.

      In the project tree there are several directories: some for sources (i.e. "src", "qml", "include", etc...) some in Other Files ("configs", "images", etc...).

      I'm not able to rename them.
      The popup menu (right-click) does not provide a "rename" action for the folders but for files only.
      If I try to rename the folder on the file-system QtCreator does not detect the changes and the file cannot be opened anymore.

      So... what is the correct way to rename a directory in the project tree?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 27 Oct 2021, 05:13 last edited by
      #2

      @Mark81 You will have to rename the folders manually AND change their names manually in the project files (.pro and .prj).

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • M Offline
        M Offline
        Mark81
        wrote on 27 Oct 2021, 15:55 last edited by
        #3

        Got it. Hard to believe we need to make such a hack instead of just rename inside the IDE! Unbelievable...

        J P 2 Replies Last reply 27 Oct 2021, 16:15
        0
        • M Mark81
          27 Oct 2021, 15:55

          Got it. Hard to believe we need to make such a hack instead of just rename inside the IDE! Unbelievable...

          J Offline
          J Offline
          JonB
          wrote on 27 Oct 2021, 16:15 last edited by JonB
          #4

          @Mark81 Qt Creator takes a "minimalist" approach :)

          1 Reply Last reply
          0
          • M Mark81
            27 Oct 2021, 15:55

            Got it. Hard to believe we need to make such a hack instead of just rename inside the IDE! Unbelievable...

            P Offline
            P Offline
            Pablo J. Rogina
            wrote on 27 Oct 2021, 16:34 last edited by
            #5

            @Mark81 said in Cannot rename directory in QtCreator:

            inside the IDE

            Please be aware that you're not obliged to use Qt Creator IDE to develop (write/test/debug) any Qt application...

            Upvote the answer(s) that helped you solve the issue
            Use "Topic Tools" button to mark your post as Solved
            Add screenshots via postimage.org
            Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0

            3/5

            27 Oct 2021, 15:55

            • Login

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