--- a/E5Gui/E5MapWidget.py Sat May 13 13:46:05 2017 +0200 +++ b/E5Gui/E5MapWidget.py Sat May 13 16:32:54 2017 +0200 @@ -9,10 +9,12 @@ from __future__ import unicode_literals -from PyQt5.QtCore import Qt, QSize, QRect, QCoreApplication, qVersion +from PyQt5.QtCore import Qt, QSize, QRect, QCoreApplication from PyQt5.QtGui import QColor, QBrush, QPainter from PyQt5.QtWidgets import QWidget, QAbstractScrollArea +from Globals import qVersionTuple + class E5MapWidget(QWidget): """ @@ -219,7 +221,7 @@ @param event reference to the wheel event (QWheelEvent) """ - if qVersion() >= "5.0.0": + if qVersionTuple() >= (5, 0, 0): isVertical = event.angleDelta().x() == 0 else: isVertical = event.orientation() == Qt.Vertical