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

Multiple issues in drawing canvas items on QPrinter with PdfFormat on Windows

    XMLWordPrintable

Details

    Description

      While drawing canvas items, there are multiple issues when printing PDF on windows. It used to work fine in Qt 4.8. Following are the observed issues. Although printing is working fine on screen.

      1. Transparency/Opacity doesn't take effect in lines/poly-lines etc when pen width is high (say 20).
      2. Antialiasing is not working when drawing Filled Ellipse or Rectangle with high width pen.
      3. Pen width of Ellipse is chopped off from top, bottom, left & right, when pen width is high.

      A small test program and it's output PDF file is attached along with screenshot of expected output (generated with similar code).

      Attachments

        1. TestPdfExport.zip
          34 kB
        2. test.pdf
          2 kB
        3. Screen OR Qt 4.8-Pdf Output.png
          Screen OR Qt 4.8-Pdf Output.png
          36 kB
        4. main.cpp
          2 kB

        Issue Links

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

          Activity

            People

              sletta Gunnar Sletta
              prashant.g Prashant Gupta
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes