主 widget居中:
void CMainHostTest::moveMainWindowCenter()
{
QDesktopWidget *desktop = QApplication::desktop ();
QRect rc = desktop->availableGeometry();
QPoint point_center(rc.width()/2-this->rect().width()/2, rc.height()/2-this->rect().height()/2);
move(point_center);
}