I am developing a GUI application using PyQt5 in Python, and I’ve encountered an issue with scaling on different Windows OS machines. My application’s GUI looks fine on my development PC, but when I run it on another PC with a different display scale setting, the interface elements are misaligned and the layout is distorted.
I understand that Windows OS allows users to set different scale factors for their displays (e.g., 100%, 125%, 150%, etc.), which affects how the GUI is rendered. How can I ensure that my PyQt5 application scales properly and maintains a consistent appearance across different display settings?
Any help or guidance would be greatly appreciated!
Vihanga Herath is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.