Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.2.6
-
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
- is duplicated by
-
QTBUG-111943 QWebEngineView::print() does not handle margins properly
- Closed