qtawesome icon indicating copy to clipboard operation
qtawesome copied to clipboard

Use thicker stroker / color for QIcon border

Open teddyrendahl opened this issue 6 years ago • 3 comments

Curious what the easiest way to create myQIcon with a separate border-color and thickness? It appears that using the color attribute changes both. Is appears this is possible in the C++ library by defining a custom painter? Any plans to port this feature?

teddyrendahl avatar Sep 10 '18 23:09 teddyrendahl

Any plans to port this feature?

No, but pull requests to do it are welcome.

ccordoba12 avatar Sep 11 '18 15:09 ccordoba12

Happy to put in a PR to add border-color, border-width options. Getting stuck because it looks like QPainter disregards the .brush and draws everything with the .pen because it thinks it is a font. Any advice?

teddyrendahl avatar Sep 11 '18 17:09 teddyrendahl

I haven't used QPainter that much, so I don't have much advice to offer, sorry.

ccordoba12 avatar Sep 11 '18 20:09 ccordoba12