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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: P3: Somewhat important P3: Somewhat important
    • 4.8.x
    • 4.5.3, 4.6.0
    • GUI: Printing
    • None

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes