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

Add 'exists' to QPixmapCache

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 6.3.0
    • GUI: Other
    • None
    • All

    • All

    Description

      It would be useful to check to see if a QPixmap exists without having to copy the pixmap.  This is a performance request.  During scrolling, I speculatively read thumbnails that are not displayed.  If the thumbnails have not been loaded into the pixmap cache, I will then load them.

      Checking the pixmap includes the cost of copying the pixmap, which I would like to avoid.

       

      static bool exists(const QString &key);

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              doug_rogers Doug Rogers
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes