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