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

ImageParticle source property ignores qrc @Nx identifier

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.7.1, 5.9.0 Beta 4
    • Fix Version/s: None
    • Component/s: Quick: Particles
    • Labels:
      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

            Assignee:
            w00t Robin Burchell
            Reporter:
            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