Pyqt5 download for windows 10
Is there a proper and accurate way to make a whole application (multi-dialog) scale up correctly just by setting something at the QApplication level maybe?įrom PyQt5.QtWidgets import QGridLayout, QLabel, QMainWindow, QPushButton, QFrame There were also references to ignoring the DPI setting, but that's not an adequate solution as it doesn't solve the problem for the application users who need large text. Searching online I found a bunch of examples referring to DPI (125%/150%/175%) etc., but this isn't a DPI issue, it's an ease of access text size issue. What's the correct way, please, to make a Windows PyQt5 application scale everything up if the user has chosen a text size larger than 100? But it's wrong that the QLabel and the QButton text have not scaled up (even after a Windows restart). However, if the user keeps their DPI setting at 100% but increases the text size setting under Ease Of Access -> Make text bigger, for example to 200, then things go wrong and it looks like this:įor people who need large text because of vision issues, it's correct that the window title, menu bar and status bar have all scaled up. On a Windows setup with the DPI setting set at 100% and text size (Settings -> Ease of access -> 'Make text bigger') set 100, all is well, and looks like this:Īnd if the user DPI setting gets changed, for example to 150%, then Qt compenates for it and it continues to look absolutely fine:
#Pyqt5 download for windows 10 code#
In the example code that I've pasted below, I've got a small PyQt5 window with a menu bar, status bar, and a couple of widgets in the centre.