Rendering a SVG image in QML



  • Hello!

    I'm trying to render a SVG image in a QML scene, but an error is shown in the console (QML Image: Invalid image data: file:///image.svg).

    I'm using Qt 5.2 and CMAKE, and I guess I have to build any add-on that is not build by default, but I don't know how to do it. Any ideas?

    Thanks!



  • maybe you need built svg plugin (inside plugins/imageformats)?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.