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

Incorrect Printing of QGraphicsScene/QGraphicsView with QPrinter::PdfFormat

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.7.1
    • GUI: Printing
    • None
    • Windows XP

      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.

        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
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:

                There are no open Gerrit changes