--- a/E5Gui/E5SideBar.py Sat May 13 13:46:05 2017 +0200 +++ b/E5Gui/E5SideBar.py Sat May 13 16:32:54 2017 +0200 @@ -10,13 +10,14 @@ from __future__ import unicode_literals from PyQt5.QtCore import QEvent, QSize, Qt, QByteArray, QDataStream, \ - QIODevice, QTimer, qVersion + QIODevice, QTimer from PyQt5.QtWidgets import QTabBar, QWidget, QStackedWidget, QBoxLayout, \ QToolButton, QSizePolicy from E5Gui.E5Application import e5App import UI.PixmapCache +from Globals import qVersionTuple class E5SideBar(QWidget): @@ -254,7 +255,7 @@ elif self.isMinimized(): self.expand() elif evt.type() == QEvent.Wheel: - if qVersion() >= "5.0.0": + if qVersionTuple() >= (5, 0, 0): delta = evt.angleDelta().y() else: delta = evt.delta()