apply AltGr workaround on qt 5.14 as well

This commit is contained in:
Damien Elmes 2020-07-26 10:13:53 +10:00
parent ca8265a695
commit dbbdd16f0f

View file

@ -454,7 +454,11 @@ def _run(argv=None, exec=True):
if os.environ.get("ANKI_SOFTWAREOPENGL"): if os.environ.get("ANKI_SOFTWAREOPENGL"):
QCoreApplication.setAttribute(Qt.AA_UseSoftwareOpenGL) 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" os.environ["QT_QPA_PLATFORM"] = "windows:altgr"
# create the app # create the app