0

Since it seems not possible to add a QDockWidget in the middle area of a form, i wonder how can i resize the middle area text widget to automatically will the space.

Ex:

=======================
|    top doc          |
|---------------------| 
| left| text    |right|
| dock|  edit   |doc  |
|     |         |     |
|     |         |     |
=======================

now if i resize or move any docks, it doesnt resize the text edit in the middle. How can i make my text edit automatically resizable?

Anton
  • 1,181
  • 2
  • 17
  • 27

1 Answers1

1

Can you make the text edit the central widget, then it should have this behaviour by default

see http://qt-project.org/doc/qt-4.8/mainwindows-dockwidgets.html

Martin Beckett
  • 94,801
  • 28
  • 188
  • 263
  • Doesnt work for layouts throught, but using some default container then adding a layout works. – Anton Apr 13 '12 at 23:25