Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Rendering a SVG image in QML
QtWS25 Last Chance

Rendering a SVG image in QML

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.3k Views
  • 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 Offline
    Z Offline
    Zoox
    wrote on last edited by
    #1

    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
    1
    • A Offline
      A Offline
      at1970
      wrote on last edited by
      #2

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

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved