PDA

View Full Version : How to disable resize in a QWidget



aguleo
16th February 2013, 16:22
Hi
I subclasse a QWidget to myQWidget.
After resizing it to (x,y) i call show().

Is it possible to not allowing any further resizing by the user?

Sorry ... asked to soon:)
w.setFixedSize(200,200);

anda_skoa
17th February 2013, 18:59
Probably resize to the sizeHint() instead of a hardcoded size though :)

Cheers,
_

wysota
17th February 2013, 20:58
Or better yet assign a fixed size constraint to the layout of the window.