QMainWindow & tabbed dock widgets, minimize area on click
-
Hey
I'd like to implement a functionality when user stack few widgets on top of each other & click on name of currently active tab of that widget for the entire area to "collapse"/ hide as a way to have only tab visible/widget hidden.
I went over few "weird" approaches and I'm hitting strange walls which tells me that I must be approaching it totally backwards or there is a better way of doing it.
How can I do this?
TIA
-
Hi,
I am not sure to understand correctly what you want to achieve.
Can you post a drawing of what you would like to get ?
-
So you would like all QDockWidgets in that area to be hidden ? If so, what about calling hide on all of them ?
-
Hi
If you mean get signal when the tabbar is clicked ?
I used FindChild to get access to it . not sure there is better way.
https://stackoverflow.com/questions/51215635/notification-when-qdockwidgets-tab-is-clicked -
@mrjj Yeah I was trying that too at some point, but it does not exist when there are no tabbed dock widgets. So getting a logic behind it to work was a bit "whh". It was my early attempt at solving that action. Just though there is a better way.
-
Hi
I did not find any other way to gain access to the tab bar.