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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.4
    • GUI: Workspace
    • None
    • 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

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              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