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

QWebEngineView::print margin issues

    XMLWordPrintable

Details

    • 421d3c4e0 (dev), db2de3ebf (6.5)

    Description

      During migration from Qt5 to Qt6 we noticed that printing with QWebEngineView print does not have any margins by default. This was true for both Windows and Mac.

      This is leading to cropped data leading to omitted rows when printing a table.

      As a workaround I tried setting some margins on the printer being passed to QWebEngineView print

          prntDlg->printer()>printEngine()>setProperty(QPrintEngine::PPK_PageMargins, QList<QVariant>{25,25,25,25});

       

      This however shifted the print lower and further right, but made the bottom edge cut-off worse.

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-111909
          # Subject Branch Project Status CR V

          Activity

            People

              yigitakcay Yiğit Akçay (Inactive)
              kgudmund Kathleen Gudmundsen
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes