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

ImageParticle source property ignores qrc @Nx identifier

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.7.1, 5.9.0 Beta 4
    • Quick: Particles
    • None

    Description

      Unlike the Image component's, ImageParticle's source property doesn't take Device Pixel Ratio identifier into account.

      I have two QRC files:
      assets_1.qrc
      – avatar.png

      assets_2.qrc
      – avatar@2x.png

      When I run my app on Android Device with device pixel ratio of 3, and try to use qrc:/avatar.png as a ImageParticle's source, avatar.png is loaded instead of avatar@2x.png. Image's component source property work properly.

      I'm also trying to optimize my app, by loading only compiled @2x images on startup. In that case ImageParticle throws an error: QML ImageParticle: Cannot open: qrc:/avatar.png

      I'm assuming source property for both components should behave the same.

       

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            zibi Zbigniew Rzepka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes