I have an image in *.svg format. I want to load and convert it into a QPixmap object, where the image is opaque where the svg vector lines dictate color, and transparent everwhere else.
I'm currently doing this:
It puts the svg image into the QLabel, but with an opaque background.Qt Code:
QSvgRenderer renderer; renderer.load("images/my-logo.svg"); renderer.render(&painter); logoLabel->setPixmap(image);To copy to clipboard, switch view to plain text mode
How can I make it with a transparent background?
Bookmarks