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

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • 4.8.x
    • 4.5.3, 4.6.0
    • GUI: Printing
    • 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

              johnlayt John Layt
              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