From eb7a60fcf83cd4e7a41ae5955e57935e39928fbd Mon Sep 17 00:00:00 2001 From: Ogi Moore Date: Mon, 8 Mar 2021 09:36:40 -0800 Subject: [PATCH] Fix environment variable typo for highdpi scaling (#1627) --- doc/source/how_to_use.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/how_to_use.rst b/doc/source/how_to_use.rst index 1c8880d0..0c5a1748 100644 --- a/doc/source/how_to_use.rst +++ b/doc/source/how_to_use.rst @@ -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:: - os.environ["QT_ENABLE_HIDPI_SCALING"] = "1" + os.environ["QT_ENABLE_HIGHDPI_SCALING"] = "1" 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::