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

QGraphicsItem - Cache without clear

    XMLWordPrintable

Details

    Description

      Customer says: "I have attached a stripped down test app which demonstrates the problem. In the app there is a single item which covers the entire screen. Initially it paints 100 rectangles, then in each future frame 25 of the rectangles change colour. Without the suggested modification only the rectangles painted each frame can be seen. However, if the clear in the qgraphicsscene ItemCoordinateCache code is commented out you would correctly see all 100 rectangles every frame with only the first 25 changing colour. Basically, if the clear is left in the graphics item is forced to repaint everything every frame. In this simple test app that may not be a huge issue but if the item consists of a lot of complex visuals it can be very expensive."

      Attachments

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

        Activity

          People

            hanssen Andreas Aardal Hanssen (closed Nokia identity) (Inactive)
            admin Administrator
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes