Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Rendering a SVG image in QML

    General and Desktop
    2
    2
    1123
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Z
      Zoox last edited by

      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!

      1 Reply Last reply Reply Quote 1
      • A
        at1970 last edited by

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

        1 Reply Last reply Reply Quote 1
        • First post
          Last post