From adda80fc33f2e7cd6e04404a3313daafa390a22e Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 18 Jul 2016 13:59:45 +1000 Subject: [PATCH] refuse to run on qt5.7.0 --- aqt/qt.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aqt/qt.py b/aqt/qt.py index 7fc68529c..981618e54 100644 --- a/aqt/qt.py +++ b/aqt/qt.py @@ -36,6 +36,9 @@ if os.environ.get("DEBUG"): qtmajor = (QT_VERSION & 0xff0000) >> 16 qtminor = (QT_VERSION & 0x00ff00) >> 8 +qtpoint = QT_VERSION & 0xff if qtmajor < 5 or (qtmajor == 5 and qtminor < 5): raise Exception("Qt must be 5.5+") +if qtmajor == 5 and qtminor == 7 and qtpoint == 0: + raise Exception("Your Qt version is known to be broken.")