qt 设置程序居中 康闯 2021-07-30 229 阅读1分钟 qt 设置程序居中 widget *s =new widget; s->move((QApplication::desktop()->width()-s->width())/2, (QApplication::desktop()->height()-s->height())/2); s->show();