Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?
Qt 6.12 LTS is out! See what's new in the release blog

How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
12 Posts 5 Posters 2.6k Views 2 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.
  • E Offline
    E Offline
    Emre MUTLU
    wrote on last edited by
    #2
    This post is deleted!
    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #3

      There is no such option and there is nothing to set up because that's the default behavior of a build system.

      If it's not happening for you make sure you're modifying the same project you're running or its dependencies. I've seen in a lot of your screenshots that you usually have multiple similarly named projects opened at the same time. When you hit run the active project (the one in bold on the project list) and its dependencies (as set up in the project files for that project) are checked for changes and built if needed. Other projects are not, as they are not part of the run.

      And yes, you've asked this before, quite recently actually: "dirty file" option :)

      A 1 Reply Last reply
      0
      • Chris KawaC Chris Kawa

        There is no such option and there is nothing to set up because that's the default behavior of a build system.

        If it's not happening for you make sure you're modifying the same project you're running or its dependencies. I've seen in a lot of your screenshots that you usually have multiple similarly named projects opened at the same time. When you hit run the active project (the one in bold on the project list) and its dependencies (as set up in the project files for that project) are checked for changes and built if needed. Other projects are not, as they are not part of the run.

        And yes, you've asked this before, quite recently actually: "dirty file" option :)

        A Offline
        A Offline
        Anonymous_Banned275
        wrote on last edited by
        #4

        @Chris-Kawa OK, since when I downloaded QT "they " asked if I be willing to help ....
        I may take that as "new year resolution " and may make a suggestion "they" make it an option.
        Actually my motive is - what kind of reaction I get from "them"....

        PS
        I have been watching WHAT project I am building....but I still forget to check "shadow build"...

        CASE CLOSED

        1 Reply Last reply
        0
        • Chris KawaC Offline
          Chris KawaC Offline
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #5

          I'm a bit afraid to ask, but who's "they"?

          Aliens

          A 1 Reply Last reply
          0
          • Chris KawaC Chris Kawa

            I'm a bit afraid to ask, but who's "they"?

            Aliens

            A Offline
            A Offline
            Anonymous_Banned275
            wrote on last edited by
            #6

            @Chris-Kawa ....and I am afraid to say ....the guys who write the QT code
            please note I am not using "software engineers "

            Here is an old "engineers' joke for people who are familiar that title "Eng" or "Diploma engineer "
            is used OUTSIDE US, same as US use "Phd" etc.

            Two guys are initializing a contract.
            One writes his name,,, the other "writes" FOUR crosses...

            "Why did you use four crosses instead of customary three as used by illiterate person ? "

            ..... I am an engineer...

            Chris KawaC 1 Reply Last reply
            0
            • A Anonymous_Banned275

              @Chris-Kawa ....and I am afraid to say ....the guys who write the QT code
              please note I am not using "software engineers "

              Here is an old "engineers' joke for people who are familiar that title "Eng" or "Diploma engineer "
              is used OUTSIDE US, same as US use "Phd" etc.

              Two guys are initializing a contract.
              One writes his name,,, the other "writes" FOUR crosses...

              "Why did you use four crosses instead of customary three as used by illiterate person ? "

              ..... I am an engineer...

              Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on last edited by
              #7

              @AnneRanch said:

              the guys who write the QT code
              please note I am not using "software engineers "

              Qt is open sourced. By now the number of people who contributed has to be in the upper hundreds if not thousands. I'm sure there's quite a few people you can call software engineers in there.

              Btw. shadow build is just another name for out of source build. That's a concept that predates Qt Creator or Qt. I wouldn't be surprised if it's older than your boys K&R.

              1 Reply Last reply
              0
              • JoeCFDJ Offline
                JoeCFDJ Offline
                JoeCFD
                wrote on last edited by JoeCFD
                #8

                I guess you are using Linux . If yes, simply build and run your project from command line. Then you will not have the issue anymore. Build is even faster. I use qt creator only for configuring, editing and debugging. My project is built and run from command line.

                A 1 Reply Last reply
                0
                • JoeCFDJ JoeCFD

                  I guess you are using Linux . If yes, simply build and run your project from command line. Then you will not have the issue anymore. Build is even faster. I use qt creator only for configuring, editing and debugging. My project is built and run from command line.

                  A Offline
                  A Offline
                  Anonymous_Banned275
                  wrote on last edited by
                  #9

                  @JoeCFD It is perfectly OK with me for you to use commands.
                  I wrote my first "for hire" code in an assembly...on punch cards... no operating system.. with whopping 4 kilobytes of 8 bit wide memory ....

                  And I won' t tell how long ago....

                  Cheers

                  PS I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....

                  Christian EhrlicherC JoeCFDJ 2 Replies Last reply
                  0
                  • A Anonymous_Banned275

                    @JoeCFD It is perfectly OK with me for you to use commands.
                    I wrote my first "for hire" code in an assembly...on punch cards... no operating system.. with whopping 4 kilobytes of 8 bit wide memory ....

                    And I won' t tell how long ago....

                    Cheers

                    PS I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....

                    Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @AnneRanch said in How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?:

                    I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....

                    wow, then you've already more code than QtBase and when you finished your project with the same amount your code is half the size complete qt repository

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    1 Reply Last reply
                    0
                    • A Anonymous_Banned275

                      @JoeCFD It is perfectly OK with me for you to use commands.
                      I wrote my first "for hire" code in an assembly...on punch cards... no operating system.. with whopping 4 kilobytes of 8 bit wide memory ....

                      And I won' t tell how long ago....

                      Cheers

                      PS I have about 1GB of source code and that include documentation / notes and the project is bout 25% done....

                      JoeCFDJ Offline
                      JoeCFDJ Offline
                      JoeCFD
                      wrote on last edited by JoeCFD
                      #11

                      @AnneRanch You may have forgot the joy of using commands. And Unix/Linux was made for it. I am still enjoying it. It is quicker and simpler.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        Anonymous_Banned275
                        wrote on last edited by
                        #12

                        I cannot get to this post via Google mail

                        Hello
                        Emre MUTLU has posted a reply to: How to setup QtCreator to "build before run " when ANYTHING was changed / edited in project source file(s) ?

                        Tools->Options->Build & Run->General
                        then you will see there (Save All Files before build)

                        In my version this option access is under Edit -> Preferences

                        It i s set and does not work.

                        I do not want to update , I get too many weird errors , and if it is a bug in 5.12 so be i t.

                        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
                        • Unsolved