Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-43828

QMdiArea::tileSubWindows ignores activationOrder

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.6, 5.3.2
    • Widgets: Main Window
    • 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->setActiveSubWindow( list[i] ); }

      ui.mdiArea->tileSubWindows();
      ui.mdiArea->setActiveSubWindow( a )

      Code above changes activation order according to currently set order.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            alex_malyu Alex Malyushytsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes