The QDockWidget class provides a widget that can be docked inside a QMainWindow or floated as a top-level window on the desktop.