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

QPicture does not respect clipping of painter

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 5.2.0
    • GUI: Painting
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: