QDesktopWidget *deskdop = QApplication::desktop(); move((deskdop->width() - this->width())/2, (deskdop->height() - this->height())/2);