如果没记错的话可以给label设成其parent一样的背景图片,然后用setBcakgroundOrigin
QWidget::BackgroundOrigin
This enum defines the origin used to draw a widget's background pixmap.
* WidgetOrigin - the pixmap is drawn in the widget's coordinate system.
* ParentOrigin - the pixmap is drawn in the parent's coordinate system.