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

Incorrect Printing of QGraphicsScene/QGraphicsView with QPrinter::PdfFormat

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 4.7.1
    • Fix Version/s: None
    • Component/s: GUI: Printing
    • Labels:
      None
    • Environment:
      Windows XP

      Description

      QPrinter seems to ignore cosmetic pens, when printing with setOutputFormat(QPrinter::PdfFormat).
      The attached application demonstrates the problem:
      Some vectors are being displayed on a QGraphicsScene/QGraphicsView, which is then rendered on a printer for printing.
      When the vectors are smaller than 1 pixel, the rendering of the view is correct, expect when the output format of QPrinter is set to PdfFormat. In this case the cosmetic pen is ignored.

        Attachments

        1. graphicsviewprinttest.zip
          7 kB
        2. print5.pdf
          660 kB
        3. SymmetryComparison.pdf
          199 kB
        4. SymmetryComparison.png
          SymmetryComparison.png
          42 kB
        5. SymmetryComparison-noReferenceLine.pdf
          199 kB

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              mawiesma Martin Wiesmann (closed Nokia identity) (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes