QT设置背景图片子控件不受影响的方法

在父UI(MainWindow)中设置如下,则其子UI的背景图片不受影响

this->setStyleSheet(“QWidget#MainWindow{ border-image: url(:/new/prefix1/resource/background.png);}”);

猜你喜欢

转载自blog.csdn.net/ge2ming/article/details/100068758