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

Graphics effects that change the bounding rect don't work properly when nested

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.0
    • 4.7.0
    • Widgets: GraphicsView
    • None
    • 2c54f49584023633c5992579d23dc6819ec79c9e

    Description

      Given the following circumstances:

      • QGraphicsItem r1, with a child QGraphicsItem r2
      • r2 has a QGraphicsEffect which changes the boundingRect (e.g. drop-shadow)
      • r1 has any QGraphicsEffect

      The effect on r1 wouldn't take into account the new bounding rect that was generated by the effect on r2.
      The test case shows it; If the opacity effect on r1 is enabled, the drop-shadow would go away, while if the opacity effect is disabled with the --shadow-only command line argument, the shadow is visible.

      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
            noam Noam Rosenthal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes