Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37853

QtQuick and iOS Retina @2x images (Qt 5.2.1)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.3.0 RC1
    • 5.2.1
    • Quick: Other
    • None
    • Qt 5.2.1
      Running on iphone5 real device with Retina display
    • iOS/tvOS/watchOS
    • 63fb30eb29c26cd7ba0d9133610acb85cad83775

    Description

      According to this blog post:
      https://blog.qt.digia.com/blog/2013/04/25/retina-display-support-for-mac-os-ios-and-x11/

      "...High-resolution content can be provided side-by-side with the originals. The “@2x” version will be loaded automatically when needed by the QML Image element..."

      I have a QtQuick 2.1 project with two sets of images in my QRC resource file.
      Example: image.png and image@2x.png

      Image {
            source: "image.png"
      }

      Qt always selects the Low-resolution image (image.png), no matter if I'm on a retina device or not.
      Note: The image files are stored in a QRC resource file.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aalpert Alan Alpert
            fpelliccioni Fernando Pelliccioni
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes