[PyQt] A question about QDockWidget layout

flya flya flyaflyaa at gmail.com
Tue Feb 16 10:30:57 GMT 2010


I make a dock widget on top, and central widget at bottom, I hope the
dock widget has minimum size when changing the contents on it, but its
size often bigger, I tried to change sizePolice, but can't make to
work, the only way I found is use
setFixedHeight(layout.minimumSize().height()), then It became minimum
size, but it became fixed too. I hope it have a minimum size when
layout and not be fixed ,how to do it?

please see attachment, click the button to change the content on dockwidget.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tar.gz
Type: application/x-gzip
Size: 2124 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100216/2e3b6044/attachment.bin>


More information about the PyQt mailing list