Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.11.1
-
None
Description
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.