Here is a simple workaround Use below function and draw your complete QTextEdit Widget on QImage, then print that QImage doc.qt.nokia.com/latest/qwidget.html#render Qt uses different renderer for printing, I think this is an issue related to it doc.qt.nokia.com/latest/paintsystem-devi....
Here is a simple workaround, Use below function and draw your complete QTextEdit Widget on QImage, then print that QImage. doc.qt.nokia.com/latest/qwidget.html#render Qt uses different renderer for printing, I think this is an issue related to it. doc.qt.nokia.com/latest/paintsystem-devi....
Yeah, creating an image is fine for a single page document. But for a mulipage document, I'll have to manage manually the pagebreaks, to ensure the break doesn't occurs in the middle of a line, an so on... – gregseth Aug 18 at 9:51 Can you try QApplication::setGraphicsSystem("raster") (doc.qt.nokia. Com/latest/qapplication.
Html#setGraphicsSystem)? I believe that It is something to do with multiple graphics systems. – SunnyShah Aug 18 at 10:39 Please let me also know the result.
– SunnyShah Aug 18 at 10:40 It changes the appearance of the character on screen (the anti-aliasing, not the spacing) and it doesn't change a thing for the printed version. – gregseth Aug 18 at 12:20 Can you upload the images of both Qt 's printing and firefox printing? So that I can get a clue on what to look for in QtGui Code.
– SunnyShah Aug 18 at 12:34.
In my application I'm using a QTextEdit to display some text, using HTML for formatting. The displayed document can be printed. And here's the issue: while on screen the kerning is correct, when printed the document has a very bad looking (mainly: too much space after some letters).
Trying to understand the problem I output the HTML in an external file, and tested it in real browsers. In Chrome there's exactly the same issue, while in Firefox the kerning is correct for printing too. The problem comes definitely from the HTML rendering engine, but I'm not using the QtWebkit module (I haven't even compiled it) which would have explained that the same problem occurs in Chrome.
How can I fix this?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.