Rendering .svg image using QSS
Solved
General and Desktop
-
Hello everyone. I'm trying to render .svg image to QToolButton but can't do that. If I use
background-image:
andimage:
it simply isn't rendered. If I try usingborder-image:
, the image is rendered but with incorrect dimensions and with some artifacts, like a big black rectangle. -
Hi
QToolButton wants border to display on some platforms.
QToolButton {
border: 2px;
image: url(:/border.svg);
}
works for me.
example:
https://www.dropbox.com/s/z0oqrco7tfs4qm8/svgtest.zip?dl=0