PyQt5 QDockWidget – Setting Title Bar widget
In this article we will see how we can set title bar widget 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). Title bar widget is the widget that consist of the title and the options available for it, although we can change this any time.
In order to do this we will use setTitleBarWidget method with the dock widget object.
Syntax : dock.setTitleBarWidget(widget)
Argument : It takes QWidget object as argument
Return : It returns None
Below is the implementation