I am trying to mimic the behaviour on PyCharm, where there are docks on the edges and, if the user clicks on the tab, it exapnds and collapses the dock to increase the central widget.
I managed to put the tabs on the site, and I can subscribe to the tabBarClicked event to detect QDockWidgets, but I still need to figure out 2 problems:
How to always display a tab on each region where there is a dock (if there is more than 1 dock on that area, the tabs are automatically handled, but if there is only 1 dockwidget, no tabs are shown).
How to keep the tab if I hide the dock (for collapsing the widget).
Any ideas? This is what I got so far. As you can see, the QDockWidget on the bottom does not have a tab, but a title bar.