Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can I disable the shadow builds perpetually?
Forum Updated to NodeBB v4.3 + New Features

How can I disable the shadow builds perpetually?

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 4 Posters 9.1k Views 3 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.
  • nulluseN Offline
    nulluseN Offline
    nulluse
    wrote on last edited by
    #1

    As work on the Qt projects goes along, at some point the Qt Designer stops updating the ui_<blah-blah>.h files with the new UI elements being added.

    This is due to the shadow builds turned on by default in Qt Creator.

    But I cannot find an option to turn this horrible feature off in this elegant and highly intuitive UI of Qt Creator 3.6.1

    kshegunovK JKSHJ 2 Replies Last reply
    0
    • nulluseN nulluse

      As work on the Qt projects goes along, at some point the Qt Designer stops updating the ui_<blah-blah>.h files with the new UI elements being added.

      This is due to the shadow builds turned on by default in Qt Creator.

      But I cannot find an option to turn this horrible feature off in this elegant and highly intuitive UI of Qt Creator 3.6.1

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by kshegunov
      #2

      @nulluse
      Go to the left (side bar) click on "Projects". The topmost tab control contains each of your projects, click on the relevant one. Under the tab bar are listed the kits used with two buttons: "Build" and "Run". Select "Build" (if not already selected). In the build settings pane (the larger portion of the screen) there's a checkbox next to "Shadow build" (there's separate option depending on the debug/release configuration).

      Qt creator

      But I cannot find an option to turn this horrible feature off

      PS.
      Btw, shadow building is a great feature. I hate having binaries under my source tree and use it extensively.

      Read and abide by the Qt Code of Conduct

      1 Reply Last reply
      3
      • nulluseN Offline
        nulluseN Offline
        nulluse
        wrote on last edited by
        #3

        As long as they work, all great features are awesome. But once they become infuriating show stoppers, they are just that. I wholeheartedly agree that for some having a shadow build is great, but if they cause the issue I am facing, they have to go.

        kshegunovK 1 Reply Last reply
        0
        • nulluseN nulluse

          As long as they work, all great features are awesome. But once they become infuriating show stoppers, they are just that. I wholeheartedly agree that for some having a shadow build is great, but if they cause the issue I am facing, they have to go.

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          @nulluse said:

          I wholeheartedly agree that for some having a shadow build is great, but if they cause the issue I am facing, they have to go.

          I doubt shadow building is the culprit, but you could try disabling them for your own peace of heart. One thing that might be interfering is having qmake overwrite the makefiles for multiple projects if they reside in the same shadow build directory. This could happen if you haven't specified a name for the makefile in your project (.pro) file. You may want to try that as well:

          MAKEFILE = myprojectmakefilename
          

          Kind regards.

          Read and abide by the Qt Code of Conduct

          1 Reply Last reply
          1
          • nulluseN Offline
            nulluseN Offline
            nulluse
            wrote on last edited by
            #5

            Yes, disabling shadow builds fixes the issue with forgetfulness (or dementia) of Qt Designer. This is a confirmed fact.

            1 Reply Last reply
            0
            • nulluseN nulluse

              As work on the Qt projects goes along, at some point the Qt Designer stops updating the ui_<blah-blah>.h files with the new UI elements being added.

              This is due to the shadow builds turned on by default in Qt Creator.

              But I cannot find an option to turn this horrible feature off in this elegant and highly intuitive UI of Qt Creator 3.6.1

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              @nulluse said:

              As work on the Qt projects goes along, at some point the Qt Designer stops updating the ui_<blah-blah>.h files with the new UI elements being added.

              This is due to the shadow builds turned on by default in Qt Creator.

              ...

              Yes, disabling shadow builds fixes the issue with forgetfulness (or dementia) of Qt Designer. This is a confirmed fact.

              Interesting. Can you provide a copy of this fact confirmation, so that the issue can be fixed?

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              1
              • nulluseN Offline
                nulluseN Offline
                nulluse
                wrote on last edited by nulluse
                #7

                I do not know at which point and what triggers the failure to update the header, or exactly how long ago that started on each of the projects, also I am not able to share the entire projects with you, so you might just want to have a look at your code to see where it might fail.

                All I can tell if that as UI grows, and somewhere around a dozen controls on any form the header stops being updated until we turn off the shadow builds. Then it's back to normal. You can question this or interrogate me further, but this is the way it is.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sam
                  wrote on last edited by Sam
                  #8

                  If you want to turn off shadow building for all projects you create, just change the settings
                  Goto Tools -> Options -> Build & Run -> General Tab -> Default Build directory - set it as "." (dot without quotes))

                  1 Reply Last reply
                  6

                  • Login

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