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. Close Project command: any way to also close all open documents for a specific project?
Forum Updated to NodeBB v4.3 + New Features

Close Project command: any way to also close all open documents for a specific project?

Scheduled Pinned Locked Moved Qt Creator and other tools
10 Posts 3 Posters 4.2k Views 1 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    This may have been askec before but I've searched around and didn't see any questions on it.

    Qt Creator has a "Close Project" command but it doesn't close document files (i.e. it leaves them in the Editor and listed in the "Open Documents" pane). This seems odd and results in a lot of leftover clutter. If I just open a project to check syntax or copy a method, it's a couple of clicks just to close it again.

    The command "Close all projects and editors closes everything. With "Close Project," is there some keyboard option to also close all documents associated with a project?

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

      Hi,

      I didn't see that option either, this might be a good suggestion to make to the QtCreator team

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        I don't know the protocol for making a feature request but posted in the Beta forum since that seemed a possible spot: "[Feature Req- Qt Creator] “Close Project” command should close all associated documents":http://qt-project.org/forums/viewthread/31161/

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Everything bug/feature related can be reported/asked on "Jira":bugreports.qt-project.org/

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Just got notified that this feature request got closed as a duplicate.

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

              If it's a duplicate at least it means that there is already work going in this way

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • ? Offline
                ? Offline
                A Former User
                wrote on last edited by
                #7

                Alas no. It was closed as duplicate with the comment:

                bq. "Please consider to switch between sessions. We do not close files along with a project since it is hard to reliably tell which files belong to which project."

                Seemed an odd reason/limitation – not to know what files are associated with which project. The duplicates were also closed.

                I'm new to Qt, coming from iOS dev with Xcode, and haven't used Sessions yet. It seems like those are more geared to discreetly defined projects. I jump around between lots of example projects and end up with lots of cruft in y "open documents" and "editor" windows.

                Oh well.

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  In the same step also some older reports relating to the same issue have been closed.

                  The comment is correct. If you have two application projects sharing the same lib code, creator cannot know for which project those files have been opened.

                  Personally I would not mind if too many files would be closed. Either option closing one keep the rest or keeping one and close the rest are sometimes a bit tedious.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • ? Offline
                    ? Offline
                    A Former User
                    wrote on last edited by
                    #9

                    Not arguing this but one would think it would be possible to scan the open .pro files to see if there are shared files. Aren't all sources listed there? If an open file is part of an included lib (and not listed in .pro), then don't close it.

                    But I'm new to Qt and maybe there are bigger underlying issues.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      koahnig
                      wrote on last edited by
                      #10

                      I think it is slightly more than that. If you are using subdirs templates it will become complicated. Nevertheless, it seems manageable.
                      However, if I understand correctly, the "sessions" seem to cover all this, so why opening a complicated construction area when not necessary.

                      Vote the answer(s) that helped you to solve your issue(s)

                      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