From ee353099e8824a8ac2c2900e4ae64b2c0eb90c5d Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 19 Dec 2025 19:11:11 -0500 Subject: [PATCH] Uhh ok, apparently this osenv var is just idiotic? See https://www.pikers.dev/pikers/piker/issues/50#issuecomment-1041 for deatz. --- snippets/qt_screen_info.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snippets/qt_screen_info.py b/snippets/qt_screen_info.py index 4a18d7af..10561c03 100644 --- a/snippets/qt_screen_info.py +++ b/snippets/qt_screen_info.py @@ -47,7 +47,9 @@ from pyqtgraph import QtGui # https://doc.qt.io/qt-6/highdpi.html#environment-variable-reference -os.environ['QT_USE_PHYSICAL_DPI'] = '1' +os.environ['QT_USE_PHYSICAL_DPI'] = '0' +# TODO? i don't get how this is useful, when i set it it seems +# the physical-dpi get's computed incorrectly?? # Proper high DPI scaling is available in Qt >= 5.6.0. This attibute # must be set before creating the application