[Qt-interest] widget in dockwidget do not get resized

Yifei Li yifli at mtu.edu
Thu Nov 3 19:29:04 CET 2011


Hi all,

I did two experiments:

1) add a QTextEdit directly to a QDockWidget, and the QTexEdit gets resized whenever its containing dock widget is resized

2) However, if I put a QTextEdit in a layout which is set to be the layout of some other  QWidget W, and then add the QWidget W to the dock widget, the widget W is not resized when I resize the dockwidget 

What should I do to make the widget W's change its size when the dock widget is resized?


Thanks

Yifei


More information about the Qt-interest-old mailing list