int width = app->desktop()->width(); // 或者QApplication::desktop()->width()
int height = app->desktop()->height(); //注意#include <QtGui/QDesktopWidget>
move((width - (width - width / 2) * 1.5) / 2, (height - (height - height / 2) * 1.5) / 2 );
看到 都是 这么做的。。貌似。。
这也太麻烦了吧。。。
难道Qt 就没有 AlignCenter 类似的函数么。。