Qml SVG Image producing aliased result
-
Good evening all,
I'm currently working on a personal project that includes buttons with images inside as shown in the clip out below. However, for some reason after moving to another pc to do work, the images started to have aliasing. The image format used is SVG so not sure why and I struggled to find any information regarding the matter. The application is written in QML.
First PC: Surface Book 2
Screen: 3000 x 2000 UI scaling at 200%Second PC: Custom Build
Screen: 3440 x 1440 UI scaling at 100%I'm using Qt6.2, does anyone have any ideas?
-
@fcarney I appreciate the response but this didn't work for me. This however, led me to look further into the documentation. I was aware of smooth, anti-aliasing, and sourceSize which I all tried and didn't work.
Solution
The solution in the end was
mipmap: true
on the image, which results back to a smooth image. This is default to false, and I didn't realise that scaling the image down would produce a bad quality image but turns out, yes.