Permalink
Browse files

Enforce Qt >= 5.6.0 for QtWebEngine

  • Loading branch information...
The-Compiler committed Sep 7, 2016
1 parent 02bd42c commit 4d91ccfea5c970797023ec2a496178151e90ccaa
Showing with 6 additions and 2 deletions.
  1. +6 −2 qutebrowser/misc/earlyinit.py
@@ -220,14 +220,18 @@ def check_pyqt_core():
sys.exit(1)
-def check_qt_version():
+def check_qt_version(args):
"""Check if the Qt version is recent enough."""
from PyQt5.QtCore import qVersion
from qutebrowser.utils import qtutils
if qtutils.version_check('5.2.0', operator.lt):
text = ("Fatal error: Qt and PyQt >= 5.2.0 are required, but {} is "
"installed.".format(qVersion()))
_die(text)
+ elif args.backend == 'webengine' and qtutils.version_check('5.6.0', operator.lt):
+ text = ("Fatal error: Qt and PyQt >= 5.6.0 are required for "
+ "QtWebEngine support, but {} is installed.".format(qVersion()))
+ _die(text)
def check_ssl_support():
@@ -332,7 +336,7 @@ def earlyinit(args):
fix_harfbuzz(args)
# Now we can be sure QtCore is available, so we can print dialogs on
# errors, so people only using the GUI notice them as well.
- check_qt_version()
+ check_qt_version(args)
remove_inputhook()
check_libraries(args)
check_ssl_support()

0 comments on commit 4d91ccf

Please sign in to comment.