Qt Creator problem. UI changes not showing when project is built

11,326

Solution 1

I guess you're using QtCreator 2.0? I found the same strange issue. You have two options:

  • Remove the ui_{the_name_of_design}.h from the project's build dir. Then run qmake again.
  • make clean or Build → Rebuild All

But the second option even doesn't help with me. By the way that's why is good to use a different build dir than that where the sources are. If some changes don't appear to be applied, just delete the content of build dir, and everything goes fine as well.

Cheers

Solution 2

Most likely cause if that your make procedure is not noticing the changes in the .ui file, and so it is not calling the uic tool. Try to do a make clean to see if it helps, and check your build log to see if uic is being called.

Solution 3

For me, the solution was to change the BuildDirectory to the same directory where the code is, instead of the **-build-desktop directory.

Solution 4

I stumbled upon this issue as well and one thing I noticed was that my program was still running in the background without me knowing. Ending the task through task manager fixes it and you can make changes again.

Share:
11,326
Jacob
Author by

Jacob

Updated on June 10, 2022

Comments

  • Jacob
    Jacob about 2 years

    I'm making changes to a form in Creator but when I build the changes are not being "refreshed". I've gone so far as to remove every element from the form and get rid of every stylesheet but when I build the project I get the same result; as if I had never made a change at all. What gives? Am I missing something obvious? (obvious to everyone but me.. obviously)