QDesktopWidget* desktop = QApplication::desktop(); // =qApp->desktop();也可以
move((desktop->width() - this->width())/2, (desktop->height() - this->height())/2);

posted on 2013-07-08 00:31  wowk  阅读(474)  评论(0编辑  收藏  举报