Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top