Details
-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
4.8.4
-
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
- is duplicated by
-
QTBUG-92037 QMdiArea setActiveSubWindow sublist.at(0) failed if setViewMode(QMdiArea::TabbedView);
- Closed