Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use thicker stroker / color for QIcon border #94

Open
teddyrendahl opened this issue Sep 10, 2018 · 3 comments
Open

Use thicker stroker / color for QIcon border #94

teddyrendahl opened this issue Sep 10, 2018 · 3 comments

Comments

@teddyrendahl
Copy link

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 teddyrendahl changed the title Use thicker stroker / color for drawing Use thicker stroker / color for QIcon border Sep 10, 2018
@ccordoba12
Copy link
Member

Any plans to port this feature?

No, but pull requests to do it are welcome.

@teddyrendahl
Copy link
Author

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?

@ccordoba12
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants