用这个吧 QLabel *label = new QLabel; label->setAttribute(Qt::WA_TranslucentBackground);不行就用这个 label->setStyleSheet("background:transparent");再不行就两个一起用了.