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

midArea->setActiveSubWindow() does not work, if before set setViewMode(QMdiArea::TabbedView)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: 4.8.4
    • Fix Version/s: None
    • Component/s: GUI: Workspace
    • Labels:
      None
    • Environment:
      Ubuntu 14.04 (x86 and 64). Qt 4.8.4

      Description

      Bug: midArea->setActiveSubWindow() does not work, if before set setViewMode(QMdiArea::TabbedView). Test code:

      QMdiArea *midArea = new QMdiArea(this);
      setCentralWidget(midArea);
      //midArea->setViewMode(QMdiArea::TabbedView);
      QLabel *label1 = new QLabel("first");
      QMdiSubWindow *sw1 = midArea->addSubWindow(label1);
      QLabel *label2 = new QLabel("second");
      QMdiSubWindow *sw2 = midArea->addSubWindow(label2);
      midArea->setActiveSubWindow(sw1);

      After launch will be the active subwindow sw1 ("first"). But if uncommented line setViewMode(QMdiArea::TabbedView), then after launch will be the active subwindow sw2 ("second").

        Attachments

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

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            arhiv6 Verkhovin Vyacheslav
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes