Laurens Verb
Laurens Verb

Reputation: 21

QT: Ui doesn't refresh while Building

I got a problem with QT Creator. I changed some widgets in my UI-file but when I'm building my program I get the old version without the changes. I already tried these things:

Nothings seems to work out...kind of desperate...anyone got some advice? Thank you in advance,

Laurens

Upvotes: 2

Views: 1361

Answers (2)

TonyK
TonyK

Reputation: 17124

Try running qmake. (This is an option in the Build menu.)

Upvotes: 3

hmuelner
hmuelner

Reputation: 8231

Things to check:

  • did you save your ui file to disk before building?
  • building the ui file xxx.ui creates the file ui_xxx.h in the build directory. Does this file have a date in the future? Delete this file and rebuild.
  • do you include the correct header file (ui_xxx.h)?

Upvotes: 1

Related Questions