Apart from what Daniel already said, I can add that this is a wrong approach (not Daniel's, the thread autor's). Take a look at this article, maybe it gives you some hints:
http://wiki.qtcentre.org/index.php?t...panding_dialog. In your case you should probably use the Minimum constraint.