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. Bad Resolution of SVG's on iOS and Mac Retina Displays

Bad Resolution of SVG's on iOS and Mac Retina Displays

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.4k Views 1 Watching
  • 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.
  • A Offline
    A Offline
    abortretryfailure
    wrote on last edited by
    #1

    By default, Images with SVG sources look bad on Mac and iOS Retina/HiDpi displays
    For example, checkout the poor resolution of this SVG on an iPhone 4s (or newer) or Mac Retina display
    @
    Image {
    source: "http://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg"
    sourceSize.width: 64
    sourceSize.height: 64
    }
    @

    One can almost work around this issue by doubling the sourceSize and scaling the resultant image
    @
    Image {
    source: "http://upload.wikimedia.org/wikipedia/commons/0/02/SVG_logo.svg"
    sourceSize.width: 128
    sourceSize.height: 128
    scale: 0.5
    }
    @
    But this leaves padding around the image caused by the scale operation--
    Is there another way to make SVGs look nice on Retina displays that doesn't create padding around the image?

    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