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

QPicture setClipRect will break the clipRect defined in the painter that draw the picture

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.2, 6.2.2
    • GUI: Painting
    • None
    • Debian GNU/Linux bookworm/sid
    • Linux/X11

      When you draw a QPicture with some clipped parts (with setClipRect) inside a clipped rectangle RECT (also define with setClipRect), the QPicture non clipped parts are not clipped by RECT.

      In the attached example, if you don't set clipped rectangle for red rectangle in theĀ  QPicture, both red and blue rectangles are correctly clipped by the vertical band, but if you set a clipped rect for the red rectangle in the QPicture, the blue rectangle is no longer clipped.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            vgt Eirik Aavitsland
            troopa81 Julien Cabieces
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes