PyQt5 QDockWidget – Setting Allowed Areas
In this article we will see how we can set allowed areas 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). Dock can be moved anywhere in the main window, setting allowed areas where the dock widget may be placed.
In order to do this we will use
setAllowedAreasmethod with the dock widget object.
Syntax : dock.setAllowedAreas(area)
Argument : It takes QDockWidgetArea object as argument
Return : It returns None
Below is the implementation
My Personal Notes arrow_drop_up
Please Login to comment...