-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
4.8.6, 5.3.2
-
None
-
windows 7
QMdiArea::tileSubWindows() always places widgets in ActivationHistoryOrder in SubWindowView mode.
Can be reproduced in mdi example.
In addition call setActivationOrder( QMdiArea::CreationOrder );
to insure the mode set explicitly.
Create 2 new documents,
activate Window\Time menu command.
Activate document window on the right.
activate Window\Time menu command.
It will change position. Unexpected cause QMdiArea::CreationOrder
is set.
Workaround: instead of calling QMdiArea::tileSubWindows(), call custom slot with code below:
QMdiSubWindow *a = ui.mdiArea->activeSubWindow();
QList<QMdiSubWindow *> list = ui.mdiArea->subWindowList( ui.mdiArea->activationOrder( ) );
for( int i=0; i< list.count(); i++ )
ui.mdiArea->tileSubWindows();
ui.mdiArea->setActiveSubWindow( a )
Code above changes activation order according to currently set order.