From bc6b58efdef39e7c649a16d28fe979b7822db5e5 Mon Sep 17 00:00:00 2001 From: letsfindaway Date: Tue, 17 Sep 2024 09:12:55 +0200 Subject: [PATCH] workaround: control screen positioning with Qt 6 - Positioning and sizing of control screen does not work with Qt 6 - setGeometry() has not the desired effect - additionally use move() and resize() --- src/core/UBDisplayManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/UBDisplayManager.cpp b/src/core/UBDisplayManager.cpp index 9e64cad3b..ca45ad27e 100644 --- a/src/core/UBDisplayManager.cpp +++ b/src/core/UBDisplayManager.cpp @@ -381,6 +381,9 @@ void UBDisplayManager::positionScreens() qDebug() << "control geometry" << geometry; controlWidget->setGeometry(geometry); + // with Qt6, setGeometry has not the desired effect so we additionally use move and resize + controlWidget->move(geometry.topLeft()); + controlWidget->resize(geometry.size()); UBPlatformUtils::showFullScreen(controlWidget); }