Fix scaling problems from Qt Designer to Python
-
For the past few days I've been making a Qt app on Qt Designer. But once I unplugged my laptop from my monitors, the scaling shrunk and turned out really bad. On the Designer it looks fine, but when I compile it into Python code using
loadUiit now looks horrible. On the Designer everything just grew a lot bigger. I've restarted the app and the problem still persists.
It used to look like this:

You can see the difference. It's way smaller and the font size is the same. Yet, all the graphic elements have considerably shrunk.
PC Information
Windows 11, Python 3.11, Intel (R) Iris (R) Plus Graphics.
-
Did you set any maximum size constraints in the form?
-
I did not. The
maximumSizefor all widgets are 16777215 by 16777215 and the minimum size is 0. The size policy is[Expanding, expanding, 0, 0]