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

Transform applied in paint() of custom graphics item ignored when printing on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 4.5.3, 4.6.0
    • Fix Version/s: 4.8.x
    • Component/s: GUI: Printing
    • Labels:
      None

      Description

      Images are drawn using a custom QGraphicsItem with a paint() method which a) adjusts the current world transform to flip the image and b) paints the image using QPainter::drawPixmap(). It is the sign of the scale factors applied in (a) which seems to be ignored.

      The attached example demonstrates the issue. On the screen the word 'Hello' appears with the correct orientation, as the world transform correctly flips the QPixmap from top-to-bottom.
      When sent to the printer (either a real printer or 'to file') 'Hello' is not transformed, so it appears upside down.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              johnlayt John Layt
              Reporter:
              mpejcoch Martin Pejcoch (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes