[Solved] Custom QQuickPaintedItem apear blurry after instantiate more than once
It is strange. I have created one QQuickPaintedItem based Qt Quick item for my application. If I have only one instance of it on visible area of Qt Quick Window it render as it should, but if I added one or more of it instances to the same window, Only the first Item appear sharp and clear. The second and other instances appear blurry as in attached image. Any Idea why this happening?
(open image in a separate tab to see the image clearly)
It is hard to duplicate. Before I try write sample code to recreate this issue I thought it would be good Idea to ask it here.
Are you sure that all of your items are aligned to the pixel grid? You might want to debug the x and y coordinates to make sure they are not located at floating point coordinates. You can also experiment with setting the smooth property to false on the items.
That's a catch. I use floating point using QRectF positions with scaling. I'll check and update you. Thank you a lot!
Changing floating point positions to nearest integer worked! Thank you again.