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

QMacPrintEnginePrivate::paperSize() is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • 4.8.x
    • 4.6.1
    • GUI: Printing
    • None
    • Mac

    Description

      In QMacPrintEnginePrivate::paperSize() the printer's paper size
      is converted to mm (rounded up) and compared to the values stored in
      qt_paperSizes[] by calls to qt_paperSizeToQSizeF().

      This is a broken concept, because in other places qSizeFTopaperSize()
      is used to determine the PaperSize from a given QSizeF, and there
      a tolerance of +/-1mm is allowed.

      What happens under Mac OS X 10.6.2 with the "HP Laserjet 5100 Series"
      driver is that in one place the page size is detected as
      being, e.g., Letter, while in another place it is considered Custom.
      Since there is no custom page size stored, applications then fail
      because they get a custom page size of (-1, -1).

      Attachments

        1. print_test.zip
          1 kB
          John Schember

        Issue Links

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

          Activity

            People

              johnlayt John Layt
              dettman Dean Dettman (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes