PDA

View Full Version : fixed size of a top level widget (solved)



aMan
22nd July 2006, 11:38
hello,
i need a fixed size widget. i've set sizePolicy->hSizeType and sizePolicy->vSizeType both to fixed, but the resulting window can be resized. how can i fix that?

i don't want it to be the minimal size but the size i set.

i hope it's clear what i want. i've appended the ui file..

regards..
aman..

wysota
22nd July 2006, 12:26
You can't make a widget fixed size from within Designer. Use QWidget::setFixedSize().

aMan
22nd July 2006, 13:03
Sets both the minimum and maximum sizes of the widget to s, thereby preventing it from ever growing or shrinking.

i've done this manually as a workaround and it's working..

thanks for the tip..

regards..
aman..