Error while trying to use svg image
-
Hi,
We are using qt6.9.1 on windows.
We are trying to use svg image in our project but we get below error:-error: qt.svg: <use> element image0_2845_461 in wrong context!
This is my qml code where i am trying to include the svg file
Image { id: name source: "cctv_camera.svg" anchors.fill: parent fillMode: Image.PreserveAspectFit }
Note: We are using SVGs because when the application is scaled, PNG images appear blurry.
I saw Qt only supports the SVG Tiny format. Is there a way to convert my existing SVGs to this format, or is there an alternative approach to use images that won’t become blurry when the resolution changes?
Regards,
Adnan