PyQt5 QDockWidget – Setting Floating Property
In this article, we will see how we can set floating property to the QDockWidget. QDockWidget provides the concept of dock widgets, also know as tool palettes or utility windows. Dock windows are secondary windows placed in the dock widget area around the central widget in a QMainWindow(original window). This property holds whether the dock widget is floating.
A floating dock widget is presented to the user as an independent window “on top” of its parent QMainWindow, instead of being docked in the QMainWindow.
In order to do this we will use
setFloatingmethod with the dock widget object.
Syntax : dock.setFloating(True)
Argument : It takes bool as argument
Return : It returns None
Below is the implementation