githubuser0xFFFF/Qt-Advanced-Docking-System

Feature Request: Autohide of dock mechanism

imikejackson opened this issue · 6 comments

I like the idea of the auto hide docks and having docks being minimized on any side of the application. What are your thoughts on the ability that would allow the dock to be hidden like normal to a side of the application window, but clicking on that minimized dock put the dock back its original location before it was hidden/minimized?

For example, in CLion, this is when the "Structure" tab is hidden/minimized.
Screenshot 2024-05-02 at 12 40 32

This is after I click the tab on the side of the app. It always knows to go back to this original location.

Screenshot 2024-05-02 at 12 40 46

Thanks for keeping this library up to date.

What is the previous location if the user dragged various dock widgets around and closed two other dock widgets after he minimized a dock widget?

I would say what ever the last dock position a dock was in (when it is not in the minimized state) is the position that it would jump back to. In our own application, we have implemented this basically as a row of icons along the QStatusBar widget. You can toggle the visibility of a Dock widget. I would like to combine that feature with QtADS to show the dock along what ever side the user wants.

Initial State of the app

Screenshot 2024-05-03 at 13 05 12

Clicking the "Pipeline Dock" 'pin' button collapses the dock to the left.

Screenshot 2024-05-03 at 13 05 19

Clicking that collapsed dock's button along the left side:

Screenshot 2024-05-03 at 13 05 27

Unpinning the dock does not put it back to the original location. I was hoping that I would get the original image back.

Screenshot 2024-05-03 at 13 05 33

I am sure your design goals are different than ours. Maybe we are not selecting the proper set of config flags? not sure.

Yes, I understand your problem. But the feature that you want only works, if the user does not change anything in the current dock layout. As soon as your user drags your bookmarks dockwidget to another location or closes it, the previous position of the Pipeline Dock is gone. Therefore I asked the question:

What is the previous location if the user dragged various dock widgets around and closed two other dock widgets after he minimized a dock widget? The previous location maybe does not exist anymore.

Are you willing to spend some money for this feature?

Ahh.. I had to think of the scenario that you were coming up with. Now I understand the scenario. That is an interesting situation. I wonder if it does not exist, you could programmatically "recreate it"? The user could certainly recreate it through dragging. This probably isn't trivial to figure out.

Paid Support: Are you US based?

No Germany. No, not paid support. Just to get the feature implemented. I have no intention to implement it, because I don't need it. So some money could be a motivation for me to implement this :-)

Or we just wait for a pull request from someone.