QLabel *label = new QLabel;label->setAttribute(Qt::WA_TranslucentBackground);这个可以用,而且就算是放在指定了背景色的widget上面也可以用