Setting up methods to support high resolution screen adaptive in Qt5 and PyQt5
- 2021-06-28 13:15:48
- OfStack
PyQt5:
Program Entry Add
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling)
Qt5:
Program Entry Add
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);