Quote Originally Posted by jamadagni View Post
I added:

Qt Code:
  1. layout() -> setSizeConstraint ( QLayout :: SetFixedSize ) ;
To copy to clipboard, switch view to plain text mode 

at line 40 of ui.cpp but now I get a very tiny window which shows nothing. I am now unable to resize the window which would be good except I can't see anything at all.
It probably means you didn't apply a layout to the form or somewhere lower in the hierarchy.


Quote Originally Posted by jamadagni View Post
I also don't understand why setting the sizePolicy to Fixed isn't enough to do this.
Because sizePolicy only works for a widget that is inside a layout and obviously a top-level window (like yours) is not inside one.