Qt designer does not update the gui

Someone wrote out a GUI in Qt designer earlier and now I have to modify some small parts (i.e. add a button/functionality).

Premise: I add the new feature/make any modification to the .ui file in Designer. I can go to edit mode and see that this makes changes to the xml format of the .ui file

Problem: When I build and run Qt, the old version of the .ui is what is shown (without my feature upgrades). I tried cleaning everything and running qmake, but to no avail.

Any ideas for why this could be happening?


I had the same problem and it was solved when I disabled "Shadow Build" in "Projects" mode.

UPD: Still receiving upvotes for this answer makes me sad for 2 reasons

  • it is trivial
  • the issue is still there after almost 5 years

I could solve this problem wihtout change Shadow Build configuration. In my project I want to build with output files into build-ProjectName-Debug

But the QtCreator is not smart to check if are not files moc_FileName.cpp and ui_FileName.h into build directory. This problem occur because if these files moc_FileName.cpp and ui_FileName.h are into project directory the QtCreator uses them and does not recognize any modification on .ui files.

The solution to this problem was easy to me: Remove all moc_FileName.cpp and ui_FileName.h from project directory and Rebuild. These files will be created into build-ProjectName-Debug and all modifications will be there.