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 Update on Monday, May 27th 2025

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
  • 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 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
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      In options.
      alt text

      aha_1980A J 2 Replies Last reply
      6
      • mrjjM mrjj

        Hi
        In options.
        alt text

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on 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.

        mrjjM J.HilkJ 2 Replies Last reply
        1
        • aha_1980A aha_1980

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

          After I changed that, my life became easier.

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on 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.

          aha_1980A 1 Reply Last reply
          0
          • mrjjM mrjj

            @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.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 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
            • mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on 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.

              aha_1980A 1 Reply Last reply
              0
              • mrjjM mrjj

                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.

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on 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.

                mrjjM 1 Reply Last reply
                3
                • aha_1980A aha_1980

                  @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

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 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.

                  aha_1980A 1 Reply Last reply
                  1
                  • mrjjM mrjj

                    @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.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on 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.

                    mrjjM 1 Reply Last reply
                    1
                    • aha_1980A aha_1980

                      @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 :)

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 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.

                      aha_1980A 1 Reply Last reply
                      0
                      • mrjjM mrjj

                        @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.

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on 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.

                        mrjjM 1 Reply Last reply
                        0
                        • aha_1980A aha_1980

                          @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.

                          mrjjM Offline
                          mrjjM Offline
                          mrjj
                          Lifetime Qt Champion
                          wrote on 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.

                          aha_1980A 1 Reply Last reply
                          2
                          • mrjjM mrjj

                            @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.

                            aha_1980A Offline
                            aha_1980A Offline
                            aha_1980
                            Lifetime Qt Champion
                            wrote on 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
                            • mrjjM mrjj

                              Hi
                              In options.
                              alt text

                              J Offline
                              J Offline
                              JonathanA
                              wrote on 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!

                              aha_1980A 1 Reply Last reply
                              1
                              • J JonathanA

                                @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!

                                aha_1980A Offline
                                aha_1980A Offline
                                aha_1980
                                Lifetime Qt Champion
                                wrote on 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
                                • aha_1980A aha_1980

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

                                  After I changed that, my life became easier.

                                  J.HilkJ Online
                                  J.HilkJ Online
                                  J.Hilk
                                  Moderators
                                  wrote on 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.

                                  aha_1980A 1 Reply Last reply
                                  1
                                  • J.HilkJ J.Hilk

                                    @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 ;)

                                    aha_1980A Offline
                                    aha_1980A Offline
                                    aha_1980
                                    Lifetime Qt Champion
                                    wrote on 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

                                    • Login

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