QT下的几种透明效果

2025-03-28 09:12:01
推荐回答(1个)
回答1:

你想怎么玩。一种是setAttribute(Qt::WA_TranslucentBackground, true);
然后利用透明图片来玩。
一种是直接调用setWindowOpacity(qreal level);设置整个窗口透明。