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

[macOS] some QPrinter settings cannot be changed after printing on a physical printer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.1, 5.10.0, 5.12.0 Beta 4
    • GUI: Printing
    • None
    • macOS

    Description

      After printing to a physical printer on macOS, if you try to programmatically change the QPrinter orientation using `setOrientation()` it won't be changed (see attached example).

      Using QPrinter::PdfFormat as output format or QPrintPreviewWidget to render the preview does not cause the issue. The issue occurs only when QPrinter is configured to use the physical printer (or the virtual if it simulates the physical one, e.g. VipRiser).

      I guess the problem is caused due to releasing QMacPrintEnginePrivate::printInfo pointer in QMacPrintEnginePrivate::releaseSession() (called from QMacPrintEngine::end()). But the initialized QMacPrintEnginePrivate::printInfo is required for QMacPrintEngine::setProperty() to properly set the property.

      Attachments

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

        Activity

          People

            johnlayt John Layt
            v.ivasiuk Vadym Ivasiuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes