Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Dialog before mainWindow
A Former User last edited by
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
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 the