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. Force reload of externally changed files in Qt Creator
Forum Updated to NodeBB v4.3 + New Features

Force reload of externally changed files in Qt Creator

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
17 Posts 4 Posters 5.5k 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.
  • J Offline
    J Offline
    JonathanA
    wrote on 26 Apr 2019, 20:34 last edited by
    #1

    I looked around in the options but didn't find one to automatically reload a file if it was changed by external forces. I have Perforce set up to added info to the header when a file gets checked in and it is very annoying to have Qt Creator always ask me if I want to reload the file.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 27 Apr 2019, 00:59 last edited by
      #2

      Hi
      In options.
      alt text

      A J 2 Replies Last reply 27 Apr 2019, 04:42
      6
      • M mrjj
        27 Apr 2019, 00:59

        Hi
        In options.
        alt text

        A Offline
        A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 27 Apr 2019, 04:42 last edited by aha_1980
        #3

        @mrjj And I really wonder why "reload unchanged editors" is not the default.

        After I changed that, my life became easier.

        Qt has to stay free or it will die.

        M J 2 Replies Last reply 27 Apr 2019, 10:04
        1
        • A aha_1980
          27 Apr 2019, 04:42

          @mrjj And I really wonder why "reload unchanged editors" is not the default.

          After I changed that, my life became easier.

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 27 Apr 2019, 10:04 last edited by mrjj
          #4

          @aha_1980
          Well, it was finally time for the Yes to All button to get some action.
                  All these years it had been the Ok button that had it all.
                         And the Developer saw a chance to change that.

          alt text


          I also wondered that when i found the setting.
          I cant see any reason except to give Dev complete control/options.

          A 1 Reply Last reply 27 Apr 2019, 10:47
          0
          • M mrjj
            27 Apr 2019, 10:04

            @aha_1980
            Well, it was finally time for the Yes to All button to get some action.
                    All these years it had been the Ok button that had it all.
                           And the Developer saw a chance to change that.

            alt text


            I also wondered that when i found the setting.
            I cant see any reason except to give Dev complete control/options.

            A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 27 Apr 2019, 10:47 last edited by aha_1980
            #5

            @mrjj I wonder how the dialog could be improved?

            We would need a possibility to choose "Always reload" and "Always ignore" possibilities (e.g. checkboxes).

            Then it would be more obvious how to get rid of the dialog.

            That's how it looks now:

            0_1556362273297_8ef9b2e0-6246-4c6f-ab19-0ea25cd71f98-image.png

            Qt has to stay free or it will die.

            1 Reply Last reply
            1
            • M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 27 Apr 2019, 11:13 last edited by
              #6

              Hi
              "Always reload" and "Always ignore" checkboxes would work great,
              however, we would be mixing
              concepts as Dialog is pr file whereas the setting is for all files.

              The dialog gives options to cherry pick but setting disables the dialog.
              So "Always reload" could read to the user as always reload this file or
              as we mean it, always reload all files.

              What that in mind, i was wondering if a label with
              "The File Change Dialog can be configured in Options\Inviroment\system"
              below the buttons would do it.

              A 1 Reply Last reply 27 Apr 2019, 12:06
              0
              • M mrjj
                27 Apr 2019, 11:13

                Hi
                "Always reload" and "Always ignore" checkboxes would work great,
                however, we would be mixing
                concepts as Dialog is pr file whereas the setting is for all files.

                The dialog gives options to cherry pick but setting disables the dialog.
                So "Always reload" could read to the user as always reload this file or
                as we mean it, always reload all files.

                What that in mind, i was wondering if a label with
                "The File Change Dialog can be configured in Options\Inviroment\system"
                below the buttons would do it.

                A Offline
                A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 27 Apr 2019, 12:06 last edited by
                #7

                @mrjj I guess that's the best we can do for now, as the dialog is modal and opening the settings from there would be complicated.

                Here's the patch: https://codereview.qt-project.org/259927

                Qt has to stay free or it will die.

                M 1 Reply Last reply 27 Apr 2019, 12:12
                3
                • A aha_1980
                  27 Apr 2019, 12:06

                  @mrjj I guess that's the best we can do for now, as the dialog is modal and opening the settings from there would be complicated.

                  Here's the patch: https://codereview.qt-project.org/259927

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 27 Apr 2019, 12:12 last edited by
                  #8

                  @aha_1980
                  So productive :)
                  Well, i think it is very fine. Opening settings would be a nice touch but
                  not worth the hassle. (IMO)
                  But making the user aware it can be disabled/changed is excellent UX.

                  A 1 Reply Last reply 27 Apr 2019, 12:13
                  1
                  • M mrjj
                    27 Apr 2019, 12:12

                    @aha_1980
                    So productive :)
                    Well, i think it is very fine. Opening settings would be a nice touch but
                    not worth the hassle. (IMO)
                    But making the user aware it can be disabled/changed is excellent UX.

                    A Offline
                    A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 27 Apr 2019, 12:13 last edited by
                    #9

                    @mrjj said in Force reload of externally changed files in Qt Creator:

                    But making the user aware it can be disabled/changed is excellent UX.

                    Full ack. Took me 6 or 7 years until I found it :)

                    Qt has to stay free or it will die.

                    M 1 Reply Last reply 27 Apr 2019, 12:35
                    1
                    • A aha_1980
                      27 Apr 2019, 12:13

                      @mrjj said in Force reload of externally changed files in Qt Creator:

                      But making the user aware it can be disabled/changed is excellent UX.

                      Full ack. Took me 6 or 7 years until I found it :)

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 27 Apr 2019, 12:35 last edited by
                      #10

                      @aha_1980
                      Hehe that is lots of clicks :)
                      Well i was like 2 years to discover that you can ask it
                      to insert base class function override with 2 clicks instead of
                      go copy paste from the docs.

                      A 1 Reply Last reply 27 Apr 2019, 12:41
                      0
                      • M mrjj
                        27 Apr 2019, 12:35

                        @aha_1980
                        Hehe that is lots of clicks :)
                        Well i was like 2 years to discover that you can ask it
                        to insert base class function override with 2 clicks instead of
                        go copy paste from the docs.

                        A Offline
                        A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on 27 Apr 2019, 12:41 last edited by
                        #11

                        @mrjj We're getting off-topic, but yes: with every function you integrate there is a possibility the end-user is not even aware of.

                        Seems to be one the major problems (the other one is not-working functiona) in current programming industry.

                        Qt has to stay free or it will die.

                        M 1 Reply Last reply 27 Apr 2019, 12:50
                        0
                        • A aha_1980
                          27 Apr 2019, 12:41

                          @mrjj We're getting off-topic, but yes: with every function you integrate there is a possibility the end-user is not even aware of.

                          Seems to be one the major problems (the other one is not-working functiona) in current programming industry.

                          M Offline
                          M Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 27 Apr 2019, 12:50 last edited by
                          #12

                          @aha_1980
                          Indeed we are. It's just a shame that many? new users never see the true power of alt+enter.
                          I mean the feature to sync function signature changes between h/cpp is priceless.
                          The combination of Add Widget wizard and insert base function is a productivity booster.
                          Pressing alt-enter on an undefined class to have it add #include automatically is very addictive.
                          I have been contemplating a video called "Things You will like to know about QtCreator" quickly showing off the
                          most beloved features. Just need a mic though.

                          A 1 Reply Last reply 27 Apr 2019, 13:03
                          2
                          • M mrjj
                            27 Apr 2019, 12:50

                            @aha_1980
                            Indeed we are. It's just a shame that many? new users never see the true power of alt+enter.
                            I mean the feature to sync function signature changes between h/cpp is priceless.
                            The combination of Add Widget wizard and insert base function is a productivity booster.
                            Pressing alt-enter on an undefined class to have it add #include automatically is very addictive.
                            I have been contemplating a video called "Things You will like to know about QtCreator" quickly showing off the
                            most beloved features. Just need a mic though.

                            A Offline
                            A Offline
                            aha_1980
                            Lifetime Qt Champion
                            wrote on 27 Apr 2019, 13:03 last edited by
                            #13

                            @mrjj That would surely be an awesome video! There are indeed some introducing videos on youtube, but the productivity boosters are missing.

                            I can only encourage you to do it :)

                            Qt has to stay free or it will die.

                            1 Reply Last reply
                            2
                            • M mrjj
                              27 Apr 2019, 00:59

                              Hi
                              In options.
                              alt text

                              J Offline
                              J Offline
                              JonathanA
                              wrote on 2 May 2019, 21:13 last edited by
                              #14

                              @mrjj wow - crazy. I searched and searched and searched, including that very page, and did not notice that drop down. I knew it had to be there somewhere, but just glossed over it. Very odd.

                              Thanks!

                              A 1 Reply Last reply 3 May 2019, 03:50
                              1
                              • J JonathanA
                                2 May 2019, 21:13

                                @mrjj wow - crazy. I searched and searched and searched, including that very page, and did not notice that drop down. I knew it had to be there somewhere, but just glossed over it. Very odd.

                                Thanks!

                                A Offline
                                A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on 3 May 2019, 03:50 last edited by
                                #15

                                @JonathanA the next release will have a hint in the messagebox :)

                                Qt has to stay free or it will die.

                                1 Reply Last reply
                                1
                                • A aha_1980
                                  27 Apr 2019, 04:42

                                  @mrjj And I really wonder why "reload unchanged editors" is not the default.

                                  After I changed that, my life became easier.

                                  J Offline
                                  J Offline
                                  J.Hilk
                                  Moderators
                                  wrote on 3 May 2019, 06:14 last edited by
                                  #16

                                  @aha_1980 said in Force reload of externally changed files in Qt Creator:

                                  @mrjj And I really wonder why "reload unchanged editors" is not the default.

                                  After I changed that, my life became easier.

                                  I'm actually thankful for that,
                                  twice now I have accidentally overwritten files with older backup ones, and having them still open in QtC saved my day ;)


                                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                                  Q: What's that?
                                  A: It's blue light.
                                  Q: What does it do?
                                  A: It turns blue.

                                  A 1 Reply Last reply 3 May 2019, 06:32
                                  1
                                  • J J.Hilk
                                    3 May 2019, 06:14

                                    @aha_1980 said in Force reload of externally changed files in Qt Creator:

                                    @mrjj And I really wonder why "reload unchanged editors" is not the default.

                                    After I changed that, my life became easier.

                                    I'm actually thankful for that,
                                    twice now I have accidentally overwritten files with older backup ones, and having them still open in QtC saved my day ;)

                                    A Offline
                                    A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on 3 May 2019, 06:32 last edited by
                                    #17

                                    @J.Hilk Which again shows, the workflows are different.

                                    I extensively use Git, and having the prompts when you externally rebase etc. is disturbing for me.

                                    But good that you have the choice to use the workflow that suits you best.

                                    Qt has to stay free or it will die.

                                    1 Reply Last reply
                                    0

                                    10/17

                                    27 Apr 2019, 12:35

                                    • Login

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