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

QWebEngineView::print margin issues

    XMLWordPrintable

Details

    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

          Activity

            People

              qt_webengine_team Qt WebEngine Team
              kgudmund Kathleen Gudmundsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: