From 40034540cf8bdc04c1a784e78aa6f176d5752c88 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Wed, 11 Aug 2021 15:36:59 +0300 Subject: [PATCH] - fixed splash screen position on current screen when using multiple screens --- app_Main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app_Main.py b/app_Main.py index 350fea01..63965664 100644 --- a/app_Main.py +++ b/app_Main.py @@ -891,7 +891,8 @@ class App(QtCore.QObject): # move splashscreen to the current monitor # desktop = QtWidgets.QApplication.desktop() # screen = desktop.screenNumber(QtGui.QCursor.pos()) - screen = QtWidgets.QWidget.screen(self.splash) + # screen = QtWidgets.QWidget.screen(self.splash) + screen = QtWidgets.QApplication.screenAt(QtGui.QCursor.pos()) current_screen_center = screen.availableGeometry().center() self.splash.move(current_screen_center - self.splash.rect().center())