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

Custom painters for eye and dot #224

Open
rasmk opened this issue Aug 30, 2024 · 0 comments
Open

Custom painters for eye and dot #224

rasmk opened this issue Aug 30, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rasmk
Copy link

rasmk commented Aug 30, 2024

It would be nice to have custom painters to generate fancy pics.

I imagine, QrImageView could accept functions like dataModluePainter and eyePainter besides dataModuleStyle and eyeStyle.

The functions would be responsible for rendering a single element (slingle eye, single dot).

For example, eyePainter would get position (top-left, top-right, bottom-left), size, x and y.
dataModluePainter would get size, x, y and information about neighbouring dots (8 dots around), so that the shape could be different if it connects with other dots.

@rasmk rasmk added the enhancement New feature or request label Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant