Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
Difference between QMdiSubWindow and QDockWidget
Gbhutra last edited by
What is the difference between QMdiSubWindow and QDockWidget??
As far as I can tell in Qt 5.11.2 the QMdiSubWindow are also dockable! Is there a performance hit in one or the other?
Also, the widgets created by either of them don't look very good on mac. I have set the application to use
The subwindows look fine on windows though.
Hi and welcome to devnet,
They serve two different purposes.
As the name suggests, QMdiSubWindow is for Multiple-Document Interface Applications which enable you to display multiple documents at the same time. Each document being displayed in its own window. MDI applications often have a Window menu item with submenus for switching between windows or documents.
QDockWidget are usually used to provide controls, views, etc in an application.