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. Can I save a project with a standard set of files open?
Forum Updated to NodeBB v4.3 + New Features

Can I save a project with a standard set of files open?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
8 Posts 2 Posters 1.6k 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.
  • F Offline
    F Offline
    fyngyrz
    wrote on 16 Jun 2018, 02:23 last edited by
    #1

    In my project, among many other things, I have three files that both need constant attention, and which guide me in my development on both a daily and a long-term basis; There's a readme.txt, a changes list, both of which are aimed at my users, and a roadmap, which contains both my plans and my issues that need to be dealt with - that's an internal document.

    Almost every time I open the project for a session, I have to navigate the file tree and open these. It's just a minute of time, but really, it's wasted time - this is how I'd really like the project to open, every day, with very few exceptions. I rarely want to open every file that was open at the close of the last development session (though I use that as well from time to time - when you need it, it's great to have.)

    Now, I can cause this to happen by closing all the open files except those three at the end of every dev session, but that's pretty much the reverse of opening up the ones I want, and takes even longer. But it does leave the IDE in a state where I can open "the last session" and be presented with a clean slate.

    So my question is: Is there a way I can set up this state, and then save it, and have Qt present it to me as an "open project" option?

    If so, please, tell me how to go about it.

    If not, then I suggest that it be made an option.

    TIA for any eyes on this.

    --fyngyrz

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fyngyrz
      wrote on 16 Jun 2018, 02:31 last edited by
      #2

      I found it, of course, after writing all that. :)

      In the File menu, there's an entry for Session Manager.

      Set up the files the way you want them, select that menu entry, clone the existing session, rename it as you like, and then when you start, it'll be right there just as you left it when you saved the session.

      Perfect, just what I wanted.

      --fyngyrz

      1 Reply Last reply
      2
      • F Offline
        F Offline
        fyngyrz
        wrote on 16 Jun 2018, 02:35 last edited by
        #3

        Aw, darn it. no.

        After you open files in this saved session, it MODIFIES it and leaves it in the last state.

        Help?

        --fyngyrz

        A 1 Reply Last reply 16 Jun 2018, 06:30
        0
        • F fyngyrz
          16 Jun 2018, 02:35

          Aw, darn it. no.

          After you open files in this saved session, it MODIFIES it and leaves it in the last state.

          Help?

          --fyngyrz

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 16 Jun 2018, 06:30 last edited by aha_1980
          #4

          hi @fyngyrz,

          I agree that locking a session sometimes may be useful. I have already ended up with empty sessions when I accidentally close a project.

          so please file a suggestion at bugreports.qt.io (and provide a link here)

          thanks

          Qt has to stay free or it will die.

          F 1 Reply Last reply 16 Jun 2018, 12:17
          0
          • A aha_1980
            16 Jun 2018, 06:30

            hi @fyngyrz,

            I agree that locking a session sometimes may be useful. I have already ended up with empty sessions when I accidentally close a project.

            so please file a suggestion at bugreports.qt.io (and provide a link here)

            thanks

            F Offline
            F Offline
            fyngyrz
            wrote on 16 Jun 2018, 12:17 last edited by
            #5

            @aha_1980 I was thinking about trying to find where Qt stores these, saving one the way I want it, and then setting the file to read-only and seeing what Qt thought of that.

            Any ideas on where to look?

            --fyngyrz

            A 1 Reply Last reply 16 Jun 2018, 13:15
            0
            • F fyngyrz
              16 Jun 2018, 12:17

              @aha_1980 I was thinking about trying to find where Qt stores these, saving one the way I want it, and then setting the file to read-only and seeing what Qt thought of that.

              Any ideas on where to look?

              --fyngyrz

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 16 Jun 2018, 13:15 last edited by
              #6

              Hi @fyngyrz,

              I cannot tell you now where it is exactly, but you should look in ~/.config/QtProject resp. C:\Users\<user>\AppData\Roaming\QtProject

              Qt has to stay free or it will die.

              F 1 Reply Last reply 16 Jun 2018, 13:34
              0
              • A aha_1980
                16 Jun 2018, 13:15

                Hi @fyngyrz,

                I cannot tell you now where it is exactly, but you should look in ~/.config/QtProject resp. C:\Users\<user>\AppData\Roaming\QtProject

                F Offline
                F Offline
                fyngyrz
                wrote on 16 Jun 2018, 13:34 last edited by
                #7

                @aha_1980 Doesn't look like it's a file... probably buried in some config somewhere, sigh.

                A 1 Reply Last reply 16 Jun 2018, 18:48
                0
                • F fyngyrz
                  16 Jun 2018, 13:34

                  @aha_1980 Doesn't look like it's a file... probably buried in some config somewhere, sigh.

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 16 Jun 2018, 18:48 last edited by
                  #8

                  Hi @fyngyrz,

                  no it's a directory. I now found out, that a *.qws file is created for each session, e.g. ~/.config/QtProject/qtcreator/test.qws. Don't know if Creator will complain if you make this file read-only.

                  Another idea: Have you thought of using bookmarks?

                  Regards

                  Qt has to stay free or it will die.

                  1 Reply Last reply
                  0

                  4/8

                  16 Jun 2018, 06:30

                  • Login

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