PDA

View Full Version : QWidget background image from name in svg file



RolandHughes
5th February 2014, 02:37
Not seeing doc on this. Please don't post solution where single svg is in file. We have many images in single svg file. Each image has a name. When using the renderer we can pull each image out by name.

What I am looking for is the syntax/method of setting a QWidget background image BY NAME.

":/svg"
"MyFileOfImages.svg"
"Image_22"

Is there a stylesheet syntax something like background-image: :/svg/MyFileOfImages.svg/Image_22" ?

Would prefer to set this in code not stylesheet as there is runtime overhead with stylesheet.

Thanks,