Dialog before mainWindow



  •  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


  • Lifetime Qt Champion

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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.