Getting ready
To create a detachable set of widgets or tools, you need a Dock widget. A Dock widget is created with the QDockWidget class and is a container that has a title bar and buttons at the top to size it. The Dock widget, which contains a collection of widgets or tools, can be closed, docked in the dock area, or floated and placed anywhere on the desktop. The Dock widget can be docked in different dock areas, such as LeftDockWidgetArea, RightDockWidgetArea, TopDockWidgetArea, and BottomDockWidgetArea. The TopDockWidgetArea dock area is below the toolbar. You can also restrict the dock areas where the Dock widget can be docked. When you do so, the Dock widget can be docked to the specified dock areas only. When a Dock window is dragged ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access