16,203
社区成员
发帖
与我相关
我的任务
分享
int screenHeight = QApplication::desktop()->height();
int screenWidth = QApplication::desktop()->width();
int widgetWidth = width();
int widgetHeight = height();
move((screenWidth - widgetWidth) / 2, (screenHeight - widgetHeight) / 2 );