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. [Solved] What would cause a mainwindow.ui file not to match with it ui_mainwindow.h file?
Forum Update on Monday, May 27th 2025

[Solved] What would cause a mainwindow.ui file not to match with it ui_mainwindow.h file?

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 13.6k 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.
  • P Offline
    P Offline
    phamtv
    wrote on 26 Jan 2011, 19:24 last edited by
    #1

    I am running into a situation where my designer (mainwindow.ui file) does not match my header (ui_mainwindow.h file). Is there a way to force the application to regenerate the ui_mainwindow.h file to sync up with the designer? I initially designed and implemented my application on linux. I then wanted to show proof of concept and run the same application on Window. That worked out well but when I made design changes on Window´s and recompiled it on the linux platform, I notice that my changes did not take affect. The designer look identical to the changes i made but the ui_mainwindow.h file does not contain the changes. When I run the application, it would display the application prior to my changes in window´s. Any insight would greatly be appreciated!

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      Zlatomir
      wrote on 26 Jan 2011, 20:00 last edited by
      #2

      Clean All , Run qmake then Rebuild should help you with that type of issues

      Alternate method is to manually delete the auto-generated files and then rebuild

      https://forum.qt.io/category/41/romanian

      1 Reply Last reply
      0
      • P Offline
        P Offline
        phamtv
        wrote on 26 Jan 2011, 20:09 last edited by
        #3

        which file would be considered auto-generated?

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on 26 Jan 2011, 20:15 last edited by
          #4

          ui_mainwindow.h is autogenerated file.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            novaktamas
            wrote on 26 Jan 2011, 20:19 last edited by
            #5

            when you push Build -Clean all, ui_mainwindow.h gets deleted form "...-build-desktop" dir. Will be reborned at next build.

            1 Reply Last reply
            0
            • P Offline
              P Offline
              phamtv
              wrote on 26 Jan 2011, 20:24 last edited by
              #6

              Problem resolved!!! Thank you so much guys... I noticed I had a copy of the auto-generated files in my working directory and a copy in my build directory. I removed them from my working directory and that seem to resolve the issue. Thanks again!

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DenisKormalev
                wrote on 26 Jan 2011, 20:26 last edited by
                #7

                Please mark topic as [solved].

                1 Reply Last reply
                0

                1/7

                26 Jan 2011, 19:24

                • Login

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