Lv.的博客

qt 设置程序居中

widget *s =new widget;
s->move((QApplication::desktop()->width()-s->width())/2,
(QApplication::desktop()->height()-s->height())/2);
s->show();
posted @ 2014-05-04 10:14  Avatarx  阅读(471)  评论(0编辑  收藏  举报