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

wasm: asynchronous image loading never ends

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.2, 6.6.0
    • 6.5.0 Beta3
    • None
    • Tested with firefox and chrome
    • WebAssembly
    • 38e113547 (dev), 56b3be92f (6.5)

    Description

      Hi,

       

      When using the following code:

      Image {
          id: i
          source: 'qrc:/image.png'
          asynchronous: true
          onStatusChanged: {
              console.log(i.source + ' status:' + i.status + "(" + Image.Null + ","
                          + Image.Ready + "," + Image.Loading + "," + Image.Error + ")")
          }
          onProgressChanged: {
              console.log(i.source, i.progress)
          }
      }

       

      The image never appears.

      The following logs are visible in the browser console, status is stuck to loading:

      qml: qrc:/image.png status:2(0,1,2,3) #made by onStatusChanged

      If you switch the asynchronous call to false, the image is displayed.

      Note that this break loading image from http for example...

      Attachments

        Issue Links

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

          Activity

            People

              mikolaj.boc Mikołaj Boc (Inactive)
              qdel Deldycke Quentin
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes