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

Animation leaves drawing artifacts when clipping is used

    XMLWordPrintable

Details

    • 4df9c96e2c213c39924e22e02621b0c61e83f8fe

    Description

      In QML, if an Item has clipping enabled and its scale or position is animated, its children leave a trail of drawing artifacts. See the attached example: when the red Rectangle is clicked, its scale changes, and the scaling is animated.

      This does not happen if "clip: true" is removed.

      Note this also does not happen if the viewport update mode is set to QGraphicsView::FullViewportUpdate rather than QGraphicsView::BoundingRectViewportUpdate in src/declarative/util/qdeclarativeview.cpp so it seems the region that is being repainted is not correct.

      Attachments

        1. app.qml
          0.6 kB
        2. main.cpp
          2 kB

        Issue Links

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

          Activity

            People

              bjnilsen Bjørn Erik Nilsen
              bealam Bea Lam (closed Nokia identity) (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes