https://stackoverflow.com/questions/4458201/unable-to-set-the-background-image-in-qt-stylesheet
把图片加入资源用
setStyleSheet("background-image: url(:/images/sunset.jpg);");
没加入资源,使用相对路径:
setStyleSheet("background-image: url(res/images/sunset.jpg);");
https://stackoverflow.com/questions/4458201/unable-to-set-the-background-image-in-qt-stylesheet
把图片加入资源用
setStyleSheet("background-image: url(:/images/sunset.jpg);");
没加入资源,使用相对路径:
setStyleSheet("background-image: url(res/images/sunset.jpg);");