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

wasm: asynchronous image loading never ends

XMLWordPrintable

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

      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...

        For Gerrit Dashboard: QTBUG-111892
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes