Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Do I use SVG image direct or render?
Forum Updated to NodeBB v4.3 + New Features

Do I use SVG image direct or render?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 339 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.
  • I Offline
    I Offline
    Ibrahim
    wrote on last edited by A Former User
    #1

    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 https://forum.qt.io/topic/84672 ~~ @Wieland]

    1 Reply Last reply
    0

    • Login

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