PyQt5 QDockWidget – Dock Location Changed Signal
In this article we will see how we can get the dock location changed signal of 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 signal is emitted when the dock widget is moved to another dock area, or is moved to a different location in its current dock area. This happens when the dock widget is moved programmatically or is dragged to a new location by the user.
In order to do this we will use
dockLocationChangedmethod with the dock widget object.
Syntax : dock.dockLocationChanged.connect(method)
Argument : It takes method as argument
Return : It returns None
Below is the implementation