0

I've created a new project using ImageViewer as a starting point, now I'd like to improve the UI adding some controls, so I've edited the mainwindow.ui with the QT Designer this way:

enter image description here

but, when I build my project it doesn't reflect my changes. I've checked the XML in mainwindow.ui and it contains the widget I added.

Any clue?

Thanks in advance.

Community
  • 1
  • 1
Daniele
  • 310
  • 3
  • 15
  • 1
    It would appear from the asterisk at the end of the file-name in the title-bar, that you haven't saved your changes. – ekhumoro Nov 23 '16 at 18:05
  • Quick tip, if you go to Tools > Options > Build & Run, you can select "Save all files before build." Makes it much easier. – mrg95 Nov 23 '16 at 18:09

1 Answers1

0

Ok, my fault. I've noticed that I added some code in the QWidget child class contructor that overwrited the elements defined in the UI XML.

Daniele
  • 310
  • 3
  • 15