Topic: How to force QWidget "" to the minimum size?
There is QWidget with some inside on layout, in general normal to itself such window which besides is possible a mouse. At this window there is a button which shows/hides a part . Initially these are not visible. If to push the button they appear also a window itself so all of them to display. It is good. Now we push again this button what again to hide these . hid but the window remains in the same size, it can be tightened only a mouse again to minimum possible. that it would happen automatically. Meanwhile I tried resize (minimumSizeHint ()); in the output agent of pushing (after dropped property of visibility), but to a campaign minimumSizeHint () whether does not consider it is visible or not. To install another SizePolicy do not offer, as it would be necessary that the window was possible . If I will not find a method it to do, to a campaign again to bury in code Qt and to add such possibility. Thanks!