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
dock->setAllowedAreas(Qt::AllDockWidgetAreas);
QPlainTextEdit *logEdit = new QPlainTextEdit(dock);
dock->setWidget(logEdit);
dock->resize(200,200); //not working
addDockWidget(Qt::BottomDockWidgetArea, dock);
dock = new QDockWidget(tr("bottomDock"), this);
dock->setAllowedAreas(Qt::AllDockWidgetAreas);
QPlainTextEdit *logEdit = new QPlainTextEdit(dock);
dock->setWidget(logEdit);
dock->resize(200,200); //not working
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 ?
Bookmarks