diff -r f606dbe20be6 -r 000ea446ff4b Graphics/UMLGraphicsView.py --- a/Graphics/UMLGraphicsView.py Sat May 13 13:46:05 2017 +0200 +++ b/Graphics/UMLGraphicsView.py Sat May 13 16:32:54 2017 +0200 @@ -10,7 +10,7 @@ from __future__ import unicode_literals from PyQt5.QtCore import pyqtSignal, Qt, QSignalMapper, QFileInfo, QEvent, \ - QRectF, qVersion + QRectF from PyQt5.QtWidgets import QGraphicsView, QAction, QToolBar, QDialog from PyQt5.QtPrintSupport import QPrinter, QPrintDialog @@ -25,6 +25,7 @@ import UI.PixmapCache import Preferences +from Globals import qVersionTuple class UMLGraphicsView(E5GraphicsView): @@ -601,7 +602,7 @@ @param evt reference to the wheel event (QWheelEvent) """ if evt.modifiers() & Qt.ControlModifier: - if qVersion() >= "5.0.0": + if qVersionTuple() >= (5, 0, 0): delta = evt.angleDelta().y() else: delta = evt.delta()