diff -r 0c7a44af84bc -r 962bce857696 eric7/UI/NotificationWidget.py --- a/eric7/UI/NotificationWidget.py Sun May 16 11:43:59 2021 +0200 +++ b/eric7/UI/NotificationWidget.py Sun May 16 20:07:24 2021 +0200 @@ -10,8 +10,8 @@ import contextlib import enum -from PyQt5.QtCore import Qt, QTimer, QPoint -from PyQt5.QtWidgets import QFrame, QWidget, QVBoxLayout +from PyQt6.QtCore import Qt, QTimer, QPoint +from PyQt6.QtWidgets import QFrame, QWidget, QVBoxLayout from .Ui_NotificationFrame import Ui_NotificationFrame @@ -203,7 +203,7 @@ screen = self.screen() except AttributeError: # < Qt 5.15 - from PyQt5.QtGui import QGuiApplication + from PyQt6.QtGui import QGuiApplication screen = QGuiApplication.screenAt(pos) screenGeom = screen.geometry() @@ -254,7 +254,7 @@ @param evt reference to the mouse event (QMouseEvent) """ if not self.__settingPosition: - clickedLabel = self.childAt(evt.pos()) + clickedLabel = self.childAt(evt.position().toPoint()) if clickedLabel: clickedNotification = clickedLabel.parent() self.__removeNotification(clickedNotification)