Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How do I scale .svg within html tags in QML
CarlStayBack last edited by CarlStayBack
I have a
htmlline which looks like this:
return "<img align='right' width='" + 100 * myAppInfo.ratio + "' height='" + 100 * myAppInfo.ratio + "' src='qrc:/pics/svg/" + myAppInfo.icon + "'/>"
The result of this is that my
svgpicture look bad(like a bad .jpg or even worse). The problem is 100% in rescaling because I tried to remove
widthattributes - looks fine, but I need to rescale it to make it bigger. There's also possible to just edit source of my
.svg, but I need scaleness to depend on
myAppInfo.ration(I use it on different screens including desktop/mobile). So, the only approach is to fix it within this
htmlline. Can you help me?