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

QPicture does not respect clipping of painter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 5.2.0
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Environment:
      Mac Windows

      Description

      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)

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes