Important: Please read the Qt Code of Conduct -

Dialog before mainWindow

  •  if (splash->screen==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

  • Lifetime Qt Champion


    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 primo_display.

Log in to reply