Fix environment variable typo for highdpi scaling (#1627)

This commit is contained in:
Ogi Moore 2021-03-08 09:36:40 -08:00 committed by GitHub
parent 93b708e2e6
commit eb7a60fcf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,7 @@ For Qt6 bindings, this functionally "just works" without having to set any attri
On Versions of Qt >= 5.14 and < 6; you can get ideal behavior with the following lines:: On Versions of Qt >= 5.14 and < 6; you can get ideal behavior with the following lines::
os.environ["QT_ENABLE_HIDPI_SCALING"] = "1" os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "1"
QApplication.setHighDpiScaleFactorRoundingPolicy(QtCore.Qt.HighDpiScaleFactorRoundingPolicy.PassThrough) QApplication.setHighDpiScaleFactorRoundingPolicy(QtCore.Qt.HighDpiScaleFactorRoundingPolicy.PassThrough)
If you are on Qt >= 5.6 and < 5.14; you can get near ideal behavior with the following lines:: If you are on Qt >= 5.6 and < 5.14; you can get near ideal behavior with the following lines::