Hi,

is there any way to resize a docked QDockWidget programmatically ? I have three dock windows one on the left side, one on the right side and one at the bottom.
I'd like to make the bottom window smaller in height since is contains only log information

Qt Code:
  1. dock = new QDockWidget(tr("bottomDock"), this);
  2. dock->setAllowedAreas(Qt::AllDockWidgetAreas);
  3. QPlainTextEdit *logEdit = new QPlainTextEdit(dock);
  4. dock->setWidget(logEdit);
  5. dock->resize(200,200); //not working
  6. addDockWidget(Qt::BottomDockWidgetArea, dock);
To copy to clipboard, switch view to plain text mode 

I have tried calling resize() on the logEdit but no luck.
The only way to make it work I found is to use setMaximumHeight on logEdit but I don't like that solution.

Anybody knows more appropriate solution to this problem ?