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

QQuickPixmapCache causes PdfPageImage status property to malfunction

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.6.1
    • None

      If the image is already in the cache, the status property remains set to Image.Null. This is probably due to the path where loadImageFromDevice() results in instant QQuickPixmap::Ready status in qquickpdfpageimage.cpp:101 and on. In that path the thisRequestFinished() and thisRequestProgress() slots are never connected or called and the statusChanged() signal is not emitted. This can be reproduced by placing two PdfPageImage-s with their documents set to the same source URL and page number. To further corroborate the cache indeed uses URLs as part of the keys:

      QQuickPixmapKey key = { &url, &requestRegion, &requestSize, frame, providerOptions };

      This is completely fine and very nice but the reaction to QQuickPixmap::Ready should be setting status to Image.Ready and emitting the statusChanged() signal. Thank you in advance for your help.

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

            srutledg Shawn Rutledge
            sadaszewski Stanislaw Adaszewski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes