PDA

View Full Version : Qt Designer - Fixed size main form


nleverin
3rd July 2007, 10:01
Hi,

I would like to create a fixed sized mainform using qt designer although setting the size policy property to fixed does not seem to be implementing this?

Can anyone help with creating a fixed sized mainform using Qt3 Designer?

Kind Regards

nlev.

wysota
3rd July 2007, 11:25
As far as I remember you can't do it using Designer only. There is a property called "resizeMode" that does the trick, but I think it is only available for forms that are derived from QDialog. Verify that and if it is the case, use setResizeMode() from within hand written code.

jml
25th April 2008, 19:22
"resizeMode" is only available for QHeaderView and QListView. I managed to create a fixed size main dialog by going to Designer and setting both the MaximumSize and MinimumSize properties to the desired geometry.

wysota
25th April 2008, 20:54
That's not a right thing to do. It's better to apply a size constraint on the dialog's layout. The constraint should be set to SetFixedSize. Since Qt 4.4 you can do that from within Designer.