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:
Qt Code:
  1. QSvgRenderer renderer;
  2. renderer.load("images/my-logo.svg");
  3. QPixmap image(renderer.defaultSize());
  4. QPainter painter(&image);
  5. renderer.render(&painter);
  6. QLabel *logoLabel = new QLabel(this);
  7. logoLabel->setPixmap(image);
To copy to clipboard, switch view to plain text mode 
It puts the svg image into the QLabel, but with an opaque background.
How can I make it with a transparent background?