Problems with Open-Source Downloads read and

How to anchor a widget during resize

  • I have a widget inside a QScrollArea that I want to resize independently of the outer window. To this end, I've setup a dialog box with sliders connected to the widget's resize() method. The trouble is that when it resizes, its anchor point seems to move around: At times it's in the upper left corner. At others it's in the upper right. Ideally, I'd like for it to be in the center, so that growing the widget causes it to radiate outwards, while shrinking it acts in reverse.

Log in to reply