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

QPrintDialog should differentiate/split PrintPageRange option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.11.1
    • GUI: Printing
    • None
    • Linux/X11

      QPrintDialog::options() property holds the various options that affect the look and feel of the dialog. Here is a list of the available options:

      QAbstractPrintDialog::None 0x0000 None of the options are enabled.
      QAbstractPrintDialog::PrintToFile 0x0001 The print to file option is enabled.
      QAbstractPrintDialog::PrintSelection 0x0002 The print selection option is enabled.
      QAbstractPrintDialog::PrintPageRange 0x0004 The page range selection option is enabled.
      QAbstractPrintDialog::PrintShowPageSize 0x0008 Show the page size + margins page only if this is enabled.
      QAbstractPrintDialog::PrintCollateCopies 0x0010 The collate copies option is enabled
      QAbstractPrintDialog::PrintCurrentPage 0x0040 The print current page option is enabled

      Right now the API doesn't differentiate if a print range is inserted using the two QSpinBox widgets or by the arbitrary string inserted by the user. The latter functionality is enabled only when the libs are built with CUPS support (I guess only since version 5.11).

      If CUPS is not enabled, the arbitrary page range cannot be inserted but an application can provide anyway the same functionality by adding its custom widgets to the dialog. The problem I see is that the application cannot discover at run-time if the arbitrary page-range widget is available or not.

      The same applies to the page set functionality.

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

            johnlayt John Layt
            efferre79 Fabio Rossi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes