Details
-
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)
Description
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)