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

"Cosmetic" line widths become very small line when printing PDFs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.2, 5.12.4
    • Fix Version/s: None
    • Component/s: GUI: Printing
    • Labels:
      None
    • Platform/s:
      macOS, Windows

      Description

      When drawing lines to a PDF via QPrinter, the width of "cosmetic" (zero-width) lines seems to have changed between Qt 5.9.7 and 5.12.2. In 5.9.7, the printed lines displayed the expected behavior, i.e. they always displayed as one pixel wide regardless of the zoom level in the PDF viewer. In 5.12.2 (also confirmed in 5.12.4), the lines end up being very thin "non-cosmetic" lines, which means that at "normal" zoom levels they appear faded out (sometimes drastically so) in most PDF viewers, and at very high zoom levels they become thicker than one pixel.

      Compare the attached PDFs, which were generated using the same code compiled against two different versions of Qt. (Code is attached in pdf-line-weight.zip.)

        Attachments

        1. 5.12.2.pdf
          1 kB
        2. 5.9.7.pdf
          1 kB
        3. pdf-line-weight.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            johnlayt John Layt
            Reporter:
            benm_ca Ben Merritt
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes