顶层QWidget弹窗设置背景为透明,透明部分为黑色。

setAttribute(Qt::WA_TranslucentBackground);

设置此属性,解决。

posted @ 2020-12-31 09:48  梁子~  阅读(1042)  评论(0编辑  收藏  举报