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

Printing result is stretched when orientation is landscape

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 5.13
    • WebEngine
    • None

    Description

      After adding some margins and changing the orientation of printer:

      printer.setPageMargins(QMarginsF(25, 60, 25, 60));
      printer.setPageOrientation(QPageLayout::Landscape);

      the result is stretched.

      Another case, when the CSS of the web content has

      @page {
          size: letter landscape;
      }

      and the provided QPrinter has been configured to portrait, the result is similar.

      Even worse case where the pages are not uniform:

      @page :left {
        size: landscape;
      }
      @page :right {
        size: portrait;
      }
      

      Attachments

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

        Activity

          People

            davidsz Szabolcs David
            davidsz Szabolcs David
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes