Reposition Qlabels, QLineEdit and QPushButton when user changes font size - how to do that?
Unsolved
Qt for Python
-
Python 3.9.1, Qt6.
I position Qlabels, QLineEdit and QPushButton with setGeometry. The user can change the font size at runtime. If the font size is a certain size then Qlabels, QLineEdit and QPushButton will overlap. In such a case, how can I reposition Qlabels, QLineEdit and QPushButton so that my program window looks good again? -
Hi,
Since you are using setGeometry directly it's up to you to realign your widgets. Otherwise, there is the layout system that handles that automatically.
-
okay. Thank you