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 707 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 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?

    jsulmJ 1 Reply Last reply
    0
    • M Mark81

      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?

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on 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 last edited by
        #3

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

        JonBJ Pablo J. RoginaP 2 Replies Last reply
        0
        • M Mark81

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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

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

          1 Reply Last reply
          0
          • M Mark81

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

            Pablo J. RoginaP Offline
            Pablo J. RoginaP Offline
            Pablo J. Rogina
            wrote on 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

            • Login

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