1.去掉窗口的关闭、最大化、最小化按钮
this->setWindowFlags(Qt::WindowSystemMenuHint);//只剩下关闭按钮
this->setWindowFlags(Qt::FramelessWindowHint);//无边框无按钮
this->setAttribute(Qt::WA_TranslucentBackground,true);//窗口背景透明
关于QT窗口
最新推荐文章于 2022-02-19 09:12:09 发布
1.去掉窗口的关闭、最大化、最小化按钮
this->setWindowFlags(Qt::WindowSystemMenuHint);//只剩下关闭按钮
this->setWindowFlags(Qt::FramelessWindowHint);//无边框无按钮
this->setAttribute(Qt::WA_TranslucentBackground,true);//窗口背景透明