0

I have QMdiArea initialized like this:

m_pMdiArea = new QMdiArea(this);
m_pMdiArea->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);
m_pMdiArea->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
m_pMdiArea->setTabsClosable(true);
m_pMdiArea->setDocumentMode(true);
m_pMdiArea->setTabsMovable(true);
m_pMdiArea->setViewMode(QMdiArea::TabbedView);

When I open several tabs and switch between them with Ctrl key down and pressing Tab, here is how the window looks after several iterations:

Initial Ctrl+Tab Ctrl+Tab+Tab

When I release Ctrl, the new tab is selected and everything is fine. But why it looks so strange during the selection?

Maxim Makhun
  • 2,197
  • 1
  • 22
  • 26
Mikhail
  • 20,685
  • 7
  • 70
  • 146

1 Answers1

2

As of Qt 5.3.2 there appears to be a bug whereby Ctrl-Tab and Ctrl-Shift-Tab in tabbed MDI areas cause the sub window to be drawn. See QTBUG-42612.

ims
  • 66
  • 6