当前位置:   article > 正文

Qt widget窗口去除标题框,模态,置顶,窗体透明

Qt widget窗口去除标题框,模态,置顶,窗体透明

this->setWindowFlags(Qt::FramelessWindowHint); //去除标题框

this->setWindowFlags(Qt::WindowStaysOnTopHint); //窗口置顶

this->setAttribute(Qt::WA_ShowModal, true);  //窗口模态

this->setAttribute(Qt::WA_TranslucentBackground); //窗体透明

 setAttribute(Qt::WA_DeleteOnClose); //窗体关闭时销毁

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:【wpsshop博客】
推荐阅读
相关标签
  

闽ICP备14008679号