You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, wow this is a amazing project thanks for it! So while I was playing around with the examples, GoodShowCase renders the main menu with an offset when moved to second monitor.
Could be a QT bug not sure, will investigate more on my side as well.
Using QGoodWindow : 2.4.2
QT Version : 5.14.2
Windows 11
The text was updated successfully, but these errors were encountered:
int mouseScreen = qApp->desktop()->screenNumber(QCursor::pos());
QScreen* screen = qApp->screens()[mouseScreen];//windowHandle()->screen();
widget->windowHandle()->setScreen(screen);
int x = qFloor(screen->geometry().x() / m_pixel_ratio);
int y = qFloor(screen->geometry().y() / m_pixel_ratio);
x += widget->x() - screen->geometry().topLeft().x();
y += widget->y() - screen->geometry().topLeft().y();
In qgoodwindow.cpp line 2006 onwards where the QMenu class is Handled, we will have to subtract the top left for it to work properly on multiple monitors, nor sure if this the right way to get the screen but seems to do the fix for now.
I'm going to close this issue because the solution is present in version 2.4.3.
If you believe that are problems remaining, please ask to reopen this issue or open a new issue.
Hi, wow this is a amazing project thanks for it! So while I was playing around with the examples, GoodShowCase renders the main menu with an offset when moved to second monitor.
Could be a QT bug not sure, will investigate more on my side as well.
Using QGoodWindow : 2.4.2
QT Version : 5.14.2
Windows 11
The text was updated successfully, but these errors were encountered: