PDA

View Full Version : how to prevent dock windows on assigned to Qt::DockLeft being put in two columns



richardander
23rd November 2011, 19:56
Hello,

I added two dock windows to main window with following statement:


moveDockWindow( dockwindow1, Qt:: DockLeft );
addDockWindow( dockwindow2, Qt:: DockLeft, false );

when main window is large, both of dock windows are on left in one column. However, when main window is small, the two dock windows are automatically put side by side in two columns.

Question: how to keep both dock windows in one column when main window is small?

BTW, in main window, follow properties are set:
lineUpDockWindows(true);
setDockWindowsMovable(false );


Thank you,