Mikhail
Mikhail

Reputation: 21789

QMdiArea in TabbedView glitch on tab switching

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?

Upvotes: 0

Views: 609

Answers (1)

ims
ims

Reputation: 66

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.

Upvotes: 2

Related Questions