在屏幕中间显示QMainWindow

没有直接的方法,使用move函数  
  
    const QRect screen = QApplication::desktop()->screenGeometry();

    this->move( screen.center() - this->rect().center() );
相关文章
相关标签/搜索