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

qpagesetupdialog called from qprintpreviewdialog doesn't use the printDevice default paper size

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.13.0 Beta 1
    • 5.11
    • GUI: Printing
    • None
    • Linux/X11

      QPrintPreviewDialog constructs a QPageSetupDialog for the "Page Setup" action; the latter's constructor ultimately calls QPageSetupWidget::setPrinter with a nullptr for the printDevice parameter, which means it always uses A4 paper size instead of whatever default paper size set in lpoptions.

      Attached is a patch that should fix the issue; basically it complements the change in commit ff67dedaaff2dc68571ca9c8c6c6eeaaf084eae4 (which made the Page tab on QPrintPropertiesDialog use the printDevice default paper size).

       

       

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

            tsdgeos_kdab Albert Astals Cid
            ahmad.samir Ahmad Samir
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes