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

Page Setup values not persistent on Mac

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.2
    • 4.8.2, 5.3.0
    • GUI: Printing
    • Mac OS X 10.6.8, Xcode 3.2.6, Qt/Cocoa 4.8.2 Mac OSX 10.9.2
    • macOS
    • 838212b8e692add300774ffb012dc90342a3130e

      QPageSetupDialogPrivate::openCocoaPageLayout uses the NSPrintInfo from the print engine to prepare the page setup dialog (settings like orientation are read from this print info object, and saved back to it).

      QMacPrintEnginePrivate::initialize creates a new NSPrintInfo whenever the print engine is initialised.

      QMacPrintEngine::end calls QMacPrintEnginePrivate::releaseSession after printing, which releases the current NSPrintInfo.

      This means that the page setup dialog only has an effect on the next print job, and the settings are reset after that job.

      The page setup dialog is normally persistent on the Mac, and changes such as orientation should be honoured for all subsequent print jobs.

      NSPrintInfo provides an application wide info object, via [NSPrintInfo sharedPrintInfo], to avoid this situation. QMacPrintEnginePrivate::initialize should use this object rather than creating new, blank, settings for each job.

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

            andysh Andy Shaw
            refnum Dair Grant
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes