--- a/eric7/E5Gui/E5SideBar.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/E5Gui/E5SideBar.py Sun May 16 20:07:24 2021 +0200 @@ -9,10 +9,10 @@ import enum -from PyQt5.QtCore import ( +from PyQt6.QtCore import ( QEvent, QSize, Qt, QByteArray, QDataStream, QIODevice, QTimer ) -from PyQt5.QtWidgets import ( +from PyQt6.QtWidgets import ( QTabBar, QWidget, QStackedWidget, QBoxLayout, QToolButton, QSizePolicy ) @@ -248,7 +248,7 @@ """ if obj == self.__tabBar: if evt.type() == QEvent.Type.MouseButtonPress: - pos = evt.pos() + pos = evt.position().toPoint() for i in range(self.__tabBar.count()): if self.__tabBar.tabRect(i).contains(pos): break