Important: Please read the Qt Code of Conduct -

Do I use SVG image direct or render?

  • Hi, I have got an svg file (this is a world map image). SVG file (world map) is providing path tags and d attributes for country coordinates . When I click on the country, I want to get clicked country name. So, should I use svg file with Image (direct) for this job?
    Like this:

    Image {
      id: worldMap
      anchors.fill: parent
      source: 'qrc:/world_map.svg'

    Or should I render svg file for this job?

    [Closed, duplicate of ~~ @Wieland]

Log in to reply