Unable to set the background image in Qt Stylesheet

前端 未结 2 2020
感动是毒
感动是毒 2020-12-05 11:56

I\'m running my Qt app through command line with a parameter -stylesheet. The styles for the controls work but not when I\'m trying to load a background image for the MainWi

2条回答
  •  忘掉有多难
    2020-12-05 12:57

    Clearly there is a problem with the path to your image. Try using an absolute path to verify the image is loaded by QT and working.

提交回复
热议问题