1 Attachment(s)
fixed size of a top level widget (solved)
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..
Re: fixed size of a top level widget
You can't make a widget fixed size from within Designer. Use QWidget::setFixedSize().
Re: fixed size of a top level widget
Quote:
Originally Posted by QWidget::setFixedSize()
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..