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

Perf issue in QGraphicsItem::ItemClipsChildrenToShape

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.6.2
    • Widgets: GraphicsView
    • Symbian, windows
    • c1c7dbf2a066868503dfabcd7113856fa6d2e457

    Description

      Issue :

      If the child rect is bigger than the parent rect and parent has the QGraphicsItem::ItemClipsChildrenToShape flag set. then by updating the child , the whole child rect is updated/dirty and the whole child rect gets repainted. This has a perfformance issue as only part of the child rect is visible because of the above flag set in parent and parent has a smaller rect than child.

      This has a major performance issue in ORBIT/HB itemviews as they are implemented using this concept. (ie container is the child of ItemView, and it holds all the view items and the container size is bigger than the ItemView size and the ItemView has QGraphicsItem::ItemClipsChildrenToShape flag set on it.).

      I have attached a small video and a mail to show the above issue.

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            sumohant subhransu sekhar mohanty
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes