Feature Request: Add CLion-style Auto Hide Widget Behavior (Exclusive + Embedded Layout)
hello. I have one question about the auto hide dock widget's behavior. When I active the auto hide Dock widget mode, If I click the position which outside of that widget, then that widget hide immediately. I understand this behavior, it is corresponding to the mode's name "auto hide". I am not sure if I can change the behavior to work like clion IDE, I can switch displayed dock widget by clicked the side Dock widget, and if I click the position which outside, the widget keep there(if I double click outside position, it will hide) So, my question is, I was wondering when I put the Dock widget to side bar, can I to still keep the dock widget there when I click outside, rather than hide immediately.
Thanks again.
https://github.com/user-attachments/assets/9dde2855-2df7-46bc-84ca-9060c52d065d
I added a new auto hide configuration flag AutoHideCloseOnOutsideMouseClick. If you disable this flag, the the auto hide widget will stay open if you click outside of the auto hide widget. If the flag is disabled, you can close/collapse the auto hide widget by cklicking the auto hide sidebar tab.
I think it is already in the master branch now.
From: @.> Date: Sat, Jan 18, 2025, 04:37 Subject: Re: [githubuser0xFFFF/Qt-Advanced-Docking-System] Question about the auto hide Dock widget (Issue #694) To: @.> Cc: "Yiman @.>, @.> Hello apologies for bringing up a closed issue, but am curious on where to find the new flag in question regarding this. I believe it is the AutoHideCloseOnOutsideMouseClick flag mentioned in the documentation, but I can't seem to find this flag in the source code of the master branch. Am curious if it is named something else (Though couldn't see anything resembling it in the header) or if it's more than likely in a branch that hasn't made it into master yet. If the latter what branch would this be in and how stable would you say it is? Thanks in advance for any information and also for an amazing library that has saved me many headaches. Cheers! — Reply to this email directly, view it on GitHubhttps://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System/issues/694#issuecomment-2599149613, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BDDL3R4L6I5PGPMVUTRP5RT2LFSY7AVCNFSM6AAAAABU3EVP6KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKOJZGE2DSNRRGM. You are receiving this because you authored the thread.[image: https://github.com/notifications/beacon/BDDL3R7SUW6ZTDRQKLA7GGT2LFSY7A5CNFSM6AAAAABU3EVP6KWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTU25PQC2.gif]Message ID: @.***>
@githubuser0xFFFF hi, sir. I tested this new flag on latest version. When I set this flag to false, if I click outside, then the auto hide widget stay open. This is good. And I was also wondering if there has a method to make the auto hide widget behavior more like clion's style. So, first question is, how can I let auto hide widgets display in mutual exclusion way? This means, when I click one auto hide widget, then other auto hide widgets will close automatically. Another question is, when the auto hide widget opens, how can I let it occupy the layout, not just hover on the top level? If this framework could do these things, that would be awesome.
@yiman919 This is currently not possible and needs to get impemented from someone.
@githubuser0xFFFF Hi, sir. I suddenly have one idea. Can I move the tab bar to left side? And this will solve my question. I know QTabWidget has a method to do this. But I had not yet find a similar method in ADS framework.
Sorry, but this is not implemented at the moment.
That is ok.