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

Details

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

    Description

      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.

      Attachments

        1. ClippingProblem.zip
          8 kB
          Julien Cabieces
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes