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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.11
    • Fix Version/s: 5.13.0 Beta 1
    • Component/s: GUI: Printing
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      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).

       

       

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes