diff -r 0b936ff1bbb9 -r a2bc06a54d9d src/eric7/UI/NotificationWidget.py --- a/src/eric7/UI/NotificationWidget.py Sun Nov 06 11:22:39 2022 +0100 +++ b/src/eric7/UI/NotificationWidget.py Mon Nov 07 17:19:58 2022 +0100 @@ -202,13 +202,7 @@ if not self.__settingPosition: pos = Preferences.getUI("NotificationPosition") - try: - screen = self.screen() - except AttributeError: - # < Qt 5.15 - from PyQt6.QtGui import QGuiApplication - - screen = QGuiApplication.screenAt(pos) + screen = self.screen() screenGeom = screen.geometry() newX = pos.x()