PyQt5 QDockWidget

In this Python tutorial we are going to learn how to use the QDockWidget class to create a container that can be moved around freely.

The QDockWidget class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop. QDockWidget provides the concept of dock widgets, also known as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area around the central widget in a QMainWindow.

Python Code Snippet