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

Enhancements for QPrintDialog when compiled with CUPS support

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.9.3
    • None
    • Linux/Wayland, Linux/X11, Linux/Yocto, Linux/Other display system

      When built with CUPS support, the QPrintDialog offer a special "Pages:" line edit, that is used to implement server side page filtering.

      This is a handy feature but in our scenario (a help viewer based on PDF files) it gets a little annoying when the user want, e.g., to print a single page of the manual that consist of more than 2000 pages: The help viewer is instructed by the return values of QPrintDialog to print the whole document which is then transferred to the CUPS server which then discards all the pages but a single one. The user sees a progress bar of all the pages processed and is confused.

      A simple workaround would be to add another QAbstractPrintDialog::PrintDialogOption, e.g. PrintPages, that could be used to hide the "Pages:" line edit completely.

      A more elaborated enhancement could enable the user to decide whether to handle the "Pages:" line edit contents on his own or have it sent to the CUPS server - in the first case a method would be needed for access to the line edit contents and another return value for QAbstractPrintDialog::PrintRange, like Pages.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mlangen Marc Langenbach
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes