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.
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.
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.
nleverin (4th July 2007)
"resizeMode" is only available for QHeaderViewand 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.
Jim L
Seattle, WA
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.
Bookmarks