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

Asynchronous Images are loaded in reverse order

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9.2, 6.10.0 Beta3
    • Quick: Other
    • None
    • All

      I have a GridView that displays a list of Images, which are loaded asynchronously. But the images always pop up in reverse order (from bottom to top).

      After a quick inspection of the source code, it seems caused by queued jobs being popped from the back:

      https://github.com/qt/qtdeclarative/blob/1f51dc291c0763453f6a3230c8eb79a28892870f/src/quick/util/qquickpixmapcache.cpp#L847

      As there is only one thread processing local files, the job is always finished in reverse order.

      A multithreaded image provider may mitigate the issue, but won't solve it, as the jobs always come in reverse order.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            feverzsj feverzsj
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes