QT背景透明处理

1.背景透明控件不透明

setAttribute(Qt::WA_TranslucentBackground, true);

setStyleSheet ("background-color:transparent");

2.背景控件都透明

setWindowOpacity(0.7)

发布了11 篇原创文章 · 获赞 3 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/ljl578040826/article/details/9029309