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

Incorrect Printing of QGraphicsScene/QGraphicsView with QPrinter::PdfFormat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.7.1
    • GUI: Printing
    • None
    • 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

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes