You can use:
Qt Code:
  1. mainWindow.setMinimumSize(100, 100);
To copy to clipboard, switch view to plain text mode 

Are you using layouts? Because from what i have understand might be some layout-ing issue.
See if you can reproduce the problem in a small compilable example, and attach it here.