[Qt-interest] Qt WebView printing problems
Jason
jchiu at broadskyinfo.com
Mon May 18 03:03:36 CEST 2009
Hello,
We are able to run the QT demo browser application to view web pages.
But there are some problems on printing the web pages. We are wondering
if there are any fixes for those problems.
Here are the details of our problems:
(1) Some CSS styles are only applied on the first page, not on the
second or subsequent pages. On screen view and print to PDF files do not
have this problem. However when a report html is printed to a postscript
file or onto a postscript printer, some styles, such as color property,
are missing on subsequent pages. We have alternative colors on odd/even
rows on a report html file. Only the first print out page has the
alternative color.
(2) Some solid black boxes are printed on the pages.
I guess WebKit does not handle some CSS rules properly on printing. The
"background: transparent" rules causes QWebView to print out some black
boxes on pdf/ps files(also on pages). I removed all "background:
transparent" rules in my html report files. But there are still a few
solid black boxes on printed out pages for some html files. And for html
files, sometimes the printed out pages contain solid black boxes,
sometimes do not, in different run with same HTML file.
We are using QT 4.5.0 and 4.5.1 in Solaris 10 environment with binaries
built with Sun CC/C++ compilers.
Thanks a lot,
Jason
More information about the Qt-interest-old
mailing list