没有直接的方法,使用move函数 const QRect screen = QApplication::desktop()->screenGeometry();
this->move( screen.center() - this->rect().center() );