Dialog before mainWindow
Unsolved
General and Desktop
-
if (splash->screen==primo_display) this->windowHandle()->setScreen(primo_display);
I open a dialog before the mainWindow like a splash, and then I move the splash in the second screen, then the dialog closes and mainwindow opens, but mainwindow opens in the first screern and not in the second where splash was, I wrote this code but It doesn0t work
-
Hi,
Are you only calling show on you mainWindow ? Or are you also restoring its last position ?
One thing you can do is use the move method and move it to the center of theprimo_display
.