my qrc file defined as follows,
<RCC>
<qresource prefix="/images">
<file>Resources/images/background.png</file>
....
I want to use the file background.png
as my label's background.
I did like this,
label->setStyleSheet( "background-image: url(:/images/background.png);" );
but it cannot set the image as background. Is it anyway to know why label cannot load the image? Cannot find the image?
thanks
See Question&Answers more detail:os