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

StyledText doesn't support @2x images

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.6.2, 5.8
    • None

      The following example illustrates the issue. I'd expect img@2x.png to be used in both cases with QT_SCALE_FACTOR=2. Currently it is only used in the first case (the Image).

      import QtQuick 2.0
      
      Row {
          Image {
              source: "img.png"
          }
          Text {
              textFormat: Text.StyledText
              text: "<img src='img.png'/>"
          }
      }
      

        1. img.png
          0.1 kB
          Michael Brasser
        2. img@2x.png
          0.1 kB
          Michael Brasser
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes