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

Declarative items that use QPixmapCache should call QPainter::end() before inserting the pixmap to the cache

XMLWordPrintable

    • 9e353ea7a1fedd020d39e83322286931f536dc16

      Some QML items such as QDeclarativeRectangle cache themselves as pixmaps to improve performance. In many cases, when the pixmap is inserted into the cache, the pixmap still has a QPainter open on it and this results in a deep copy when the QPixmapCacheEntry is created because it uses the QPixmap copy constructor. This is most likely not intended since in most (all?) cases, when the pixmap is inserted, the item has already been painted.

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

            jpetrell Joona Petrell
            jabarron Jason Barron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes