Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Difference between QMdiSubWindow and QDockWidget

Difference between QMdiSubWindow and QDockWidget

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 539 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gbhutra
    wrote on last edited by
    #1

    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

    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    

    The subwindows look fine on windows though.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved