qt中如何去掉主窗口标题栏

如题所述

// è®¾ç½®çª—口属性即可
this->setWindowFlags(this->windowFlags() | Qt::FramelessWindowHint);
// Qt::FramelessWindowHint就是取消窗口边框及标题栏
温馨提示:答案为网友推荐,仅供参考