-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.15.2, 6.2.2
-
None
-
Debian GNU/Linux bookworm/sid
-
-
52a83658c3 (qt/qtbase/dev) 52a83658c3 (qt/tqtc-qtbase/dev) 6d2c06a667 (qt/qtbase/6.3) 6d2c06a667 (qt/tqtc-qtbase/6.3) 16cbe93195 (qt/qtbase/6.2) 16cbe93195 (qt/tqtc-qtbase/6.2)
When I define a clipPath in a QPicture with Qt::IntersectClip, it overrides the clipPath or clipRect defined in the QPainter which draws that QPicture.
It works fine when I define a clipRect in the QPicture, thanks, I presume, to this fix https://codereview.qt-project.org/c/qt/qtbase/+/104908
I think that the same fix should be done for the setClipPath method.
The attached example illustrate that (click on the button to switch between the cliprect and clippath)
| For Gerrit Dashboard: QTBUG-100420 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 394470,4 | Don't replace IntersectClip with ReplaceClip on a QPicture | dev | qt/qtbase | Status: MERGED | +2 | 0 |
| 394963,2 | Don't replace IntersectClip with ReplaceClip on a QPicture | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
| 394964,2 | Don't replace IntersectClip with ReplaceClip on a QPicture | 6.2 | qt/qtbase | Status: MERGED | +2 | 0 |