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

QPicture does not respect clipping of painter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.2.0
    • GUI: Painting
    • Mac Windows

      If a QPicture is created with a clipping path set to replace, playing it back on a QPainter replaces the clipping path of the QPainter.

      In the attached example if setClipRect() is called with Qt::ReplaceClip, drawPicture() does not honor the clipping, it still fills entire image in stead of cliped rect (100,100,200,200)

        1. main.cpp
          0.6 kB
        2. main.cpp
          0.9 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sletta Gunnar Sletta
            qtcomsupport Qt Support
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes