问题: 在windows 下使用如下函数来隐藏菜单栏 this->setWindowFlags(Qt::FramelessWindowHint); 但运行后,界面还是会有一条空白的菜单栏 解决: 打开ui文件,删除如下三项后,正常