PDA

View Full Version : Paging when Printing from QWebView into QPrinter



criskross
13th March 2014, 09:55
Hi,

i got the following Problem when printing my html which i loaded into a QWebView by using print(QPrinter). The image is splitted into two parts when the page break occurs. Can I do something to prevent this?

Thx,
Christian

10127

criskross
24th March 2014, 09:42
No one any idea?

pablodiazgutierrez
16th April 2015, 17:54
It's been a while since this was posted, but I would try using this CSS property for your image, or a variation thereof: "page-break-before: always"
http://www.w3schools.com/cssref/pr_print_pagebb.asp