Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QtCreator Build doesn't update UI changes in design form

Tags:

qt

qt-creator

My Qt project uses shadow build.
When I change in MainWindow form ( .ui file), I build the project but my program doesn't update GUI.
If I rebuild all, GUI will be updated. But rebuild is very very slow.
I try creating a new project (an empty QMainWindow with some labels), I modify some texts. I build and GUI is updated.

How can I use shadow build correctly, without a rebuild of all my project?

like image 285
shang12 Avatar asked Mar 30 '15 08:03

shang12


1 Answers

The same issue occurs if the *.ui file name is changed.

For example, Changing yourUi.ui to myUi.ui.

If that is the scenario, then the ui_*.h should also be changed, that is, yourUi.ui to ui_myUi.h.

like image 126
Jun Hong Avatar answered Oct 15 '22 19:10

Jun Hong