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

QPrinter and QPrintDialog on UNIX should query CUPS for options before the user presses Properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0 RC 1
    • 4.5.3
    • GUI: Printing
    • None
    • Linux, Ubuntu Karmic
    • be6e270d12a8267194bab669c111be9c1ec9615c

    Description

      Qt's printing system does not query CUPS for printer options until after the program opens a QPrintDialog and the user presses the Properties button to create a QPageSetupWidget. In particular, this results in an incorrect choice of A4 paper when the system is defaulted to letter paper.

      Somewhere down the stack (QPdfBaseEngine? I was looking through the code but wasn't sure where this code should go), CUPS options should be queried sooner so that a QPrinter on its own without a QPrintDialog would pick the settings for the default printer and switching printers in QPrintDialog should switch the settings to the defaults for that printer.

      I imagine the latter could be accomplished by creating the QPrintProperties dialog immediately, but I imagine Qt would like to avoid allocating that when unnecessary.

      Attachments

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

        Activity

          People

            teemukat Teemu Katajisto (Inactive)
            davidben David Benjamin
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes