githubuser0xFFFF / Qt-Advanced-Docking-System

Advanced Docking System for Qt
GNU Lesser General Public License v2.1
1.8k stars 539 forks source link

How can I fix dock width? #630

Closed soryeongpark closed 5 months ago

soryeongpark commented 5 months ago

image

Hi. First of all, thank you for providing such a great feature. I want to prevent the width of the docking widget from decreasing further so that horizontal bars do not appear. What can I do?

Plus, How can I fix docking widget size?

Thank you.

githubuser0xFFFF commented 5 months ago

Please have a look into the eInsertMode enum in DockWidget.h and eMinimumSizeHintMode and play around with it, to find out, if you can find a solution.

I would not recommend to restrict the size of any dock widget because this will block your dock system sizes. If there is a scroll bar, the user can easily adjust the dock widget with in a way that the scroll bar will disappear.