Set QMdiArea tabs movable

This commit is contained in:
triplus
2019-06-19 22:54:23 +02:00
committed by wmayer
parent 349536d2d8
commit 46d1095816

View File

@@ -252,6 +252,10 @@ MainWindow::MainWindow(QWidget * parent, Qt::WindowFlags f)
// Create the layout containing the workspace and a tab bar
d->mdiArea = new QMdiArea();
// Movable tabs
#if QT_VERSION >= 0x040800
d->mdiArea->setTabsMovable(true);
#endif
#if QT_VERSION >= 0x040500
d->mdiArea->setTabPosition(QTabWidget::South);
d->mdiArea->setViewMode(QMdiArea::TabbedView);