--- a/eric7/WebBrowser/WebBrowserTabBar.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/WebBrowser/WebBrowserTabBar.py Sun May 16 20:07:24 2021 +0200 @@ -7,8 +7,8 @@ Module implementing a specialized tab bar for the web browser. """ -from PyQt5.QtCore import Qt, QPoint, QTimer, QEvent -from PyQt5.QtWidgets import QLabel +from PyQt6.QtCore import Qt, QPoint, QTimer, QEvent +from PyQt6.QtWidgets import QLabel from E5Gui.E5TabWidget import E5WheelTabBar from E5Gui.E5PassivePopup import E5PassivePopup, E5PassivePopupStyle @@ -99,7 +99,7 @@ i = 0 tabIndex = -1 while i < self.count() and tabIndex == -1: - if self.tabRect(i).contains(evt.pos()): + if self.tabRect(i).contains(evt.position().toPoint()): tabIndex = i i += 1