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

Image statusChanged signal is emited twice

    XMLWordPrintable

Details

    • b4bf4f754ba65da3ea751dd5508d29244a4b4db2

    Description

      The statusChanged signal is emited twice when the image is already in cache.

      A patch that solves this problem is attached.

      Code to reproduce the bug:

      Item {
      id: root
      width: 600
      height: 600

      Image {
      anchors.fill: parent
      fillMode: Image.PreserveAspectFit
      onStatusChanged: console.log("satus changed: " + status)

      MouseArea

      { anchors.fill: parent onPressed: parent.source = "http://fc06.deviantart.net/fs14/f/2007/033/6/e/Dwarf_vs_Orc_by_GENZOMAN.jpg"; onReleased: parent.source = "http://th03.deviantart.net/fs71/PRE/f/2009/361/5/c/Orc_Warlock_by_kerembeyit.jpg"; }

      }
      }

      How to reproduce:

      1. Click and wait for the first image to be loaded
      2. Release and wait for the second image to be loaded
      3. Click again

      Attachments

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

        Activity

          People

            bodson Yann Bodson (Inactive)
            arezende Adriano Rezende
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes