In Ui.cpp, at the end of the constructor, put:

Qt Code:
  1. setFixedSize( sizeHint () );
To copy to clipboard, switch view to plain text mode 


Regards.