Owen
Owen

Reputation: 4173

How to make use of an SVG image in Qt stylesheet

I'm trying to use an SVG image as the image for my buttons. The reason I'm using SVG is because the sizes of my buttons vary. However, when I use it in my stylesheet, the svg image isn't stretched according to the button's size.

How do you make it resize according to button's size in Qt stylesheet?

Upvotes: 2

Views: 3417

Answers (1)

Owen
Owen

Reputation: 4173

I figured how to... just use border-image in your qt stylesheet... (^^,) .. no need to modify your code...

Upvotes: 2

Related Questions