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

QPrinter::setOrientation contains 10.4-specific behaviour on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.3.0 Beta1
    • 4.8.2
    • GUI: Printing
    • None
    • Mac OS X 10.6.8, Xcode 3.2.6, Qt/Cocoa 4.8.2
    • macOS
    • 23401a1462ffd601172d17365ff07118f198c438

    Description

      QPrinter::setOrientation is documented to have no effect during a job on the Mac.

      This was a limitation of PMSetOrientation in 10.4, which was lifted in 10.5.

      At present QMacPrintEngine::setProperty handles PPK_Orientation by checking to see if the printer is active and if so ignoring the change. This could be changed to:

          case PPK_Orientation: {
              if (d->state == QPrinter::Active && QSysInfo::MacintoshVersion < QSysInfo::MV_10_5) {
                  qWarning("QMacPrintEngine::setOrientation: Orientation cannot be changed during a print job, ignoring change");
              } else {
              .....
              }
      

      This would allow Mac OS X 10.5 or higher to behave as per other platforms.

      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
              refnum Dair Grant
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes