PDA

View Full Version : Central Widget Max Height



fruzzo
13th July 2011, 16:24
Hi,
how I can fix a maximum height of a QMainWindow central widget?
I have a QMainWindow including QDockWidgets top the central widget, like the following layout, and I want that my custom widget (setted as central widget) has an max Height like 50 pixels:

6659

Obviously I try to use the setMaximumHeight function on the central widget but without results?
Any idea?

mcosta
13th July 2011, 18:26
try using setMaximumHeight AND setSizePolicies