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

QGraphicsItems which clip to a shape print with a low resolution edge

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 4.5.3, 5.4.2
    • Fix Version/s: 4.8.x
    • Component/s: GUI: Printing
    • Labels:
      None

      Description

      Some QGraphicsItems in our scene have the QGraphicsItem::ItemClipsToShape flag set, and we overload QGraphicsItem::shape() to provide this shape information.
      We are finding that this works well when displaying the scene on the screen, but when printed the edge of the clipping area appears low resolution and irregular.

      We have reproduced this problem in a small standalone example (which I'll attach), on Windows and OS X.
      This example generates a very simple scene containing two items. One is a simple hexagonal polygon, and the other is a filled rectangle with a hexagonal clip applied to it. When viewed on the screen both items look identical, but when sent to the printer the clipped item looks more like an irregular 'blob'. See printed.png for an example of what we're seeing.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-4766
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              xcm Martin Petersson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes