qtqsizepolicyqsizegrip

how to restrict sizegrip should resize vertically or horizontally only?


I am adding sizegrip(QSizegrip) to verticall bar on bottom-right side it is resizing both horizontally and vertically actually it should allow only vertically , how to do this? Any other solutions are welcome.

image for details


Solution

  • On Object which one you want to restrict apply these flags based on requirement

        setMaximumWidth(Default_width);
        setMaximumHeight(Default_height);