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

Items clipped using QGraphicsPathItem::ItemClipsChildrenToShape produce incorrect output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0 RC
    • 5.0.2, 5.1.0 , 5.3.2
    • Widgets: GraphicsView
    • OSX 10.8.4
      Qt5.1.0 and Qt5.0.1 examples built with clang_64 using clang provided with XCode 4.6.3

      Qt4.8.5 built with g++ using g++ provided with Xcode 4.6.3 command line tools

    Description

      When using a QGraphicsPathItem with the ItemClipsChildrenToShape flag enabled some clipping masks are improperly rendered. Qt 4.8.5 correctly renders the items as seen in the images labeled QT4.8.5.XXX.png

      However Qt 5.0.2 and 5.1.0 do not properly render the items.

      ClippingTester.zip has an example project

      Attachments

        1. ClippingTester.zip
          6 kB
        2. Qt4.8.5.big.png
          Qt4.8.5.big.png
          46 kB
        3. Qt4.8.5.small.png
          Qt4.8.5.small.png
          50 kB
        4. Qt5.0.2.big.png
          Qt5.0.2.big.png
          53 kB
        5. Qt5.0.2.small.png
          Qt5.0.2.small.png
          52 kB
        6. Qt5.1.0.big.png
          Qt5.1.0.big.png
          51 kB
        7. Qt5.1.0.small.png
          Qt5.1.0.small.png
          52 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            laknoll Lars Knoll
            dogisfat Allen Blaylock
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes