PDA

View Full Version : QDockWidget resizeDocks function



ArkKup
15th August 2016, 20:58
Hi,

I'm trying to programatically resize MainWindow dock widgets. I read that in Qt 5.6 resizeDocks function was introduced :cool:
http://doc.qt.io/qt-5/qmainwindow.html#resizeDocks

I did a quick test to see how it works (I'm using Qt 5.7.0):



resizeDocks({ui->blueWidget, ui->yellowWidget}, {20 , 60}, Qt::Vertical);
setCentralWidget(0);
setDockNestingEnabled(true);


Unfortunately its not working at all :confused:
Anyone knows whats wrong ? How to pragmatically resize dock widgets ?