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

Items clipped using QGraphicsPathItem::ItemClipsChildrenToShape produce incorrect output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important 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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes