From dbbdd16f0f3b5de911a3134def664f73e56222bb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 26 Jul 2020 10:13:53 +1000 Subject: [PATCH] apply AltGr workaround on qt 5.14 as well --- qt/aqt/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qt/aqt/__init__.py b/qt/aqt/__init__.py index 69ec3e50d..803fd5691 100644 --- a/qt/aqt/__init__.py +++ b/qt/aqt/__init__.py @@ -454,7 +454,11 @@ def _run(argv=None, exec=True): if os.environ.get("ANKI_SOFTWAREOPENGL"): QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL) - if isWin and qtminor == 15 and qtpoint == 0: + if ( + isWin + and (qtminor == 14 or (qtminor == 15 and qtpoint == 0)) + and "QT_QPA_PLATFORM" not in os.environ + ): os.environ["QT_QPA_PLATFORM"] = "windows:altgr" # create the app