Try to save your QImage into the temporary file, then make a link to that file at your HTML code. Then print![]()
Try to save your QImage into the temporary file, then make a link to that file at your HTML code. Then print![]()
Taxi (13th February 2012)
That is the last option I want to use. But I see no other way at the moment. Still thanks!
Problem here is that if you create a QImage from a plot, and save it to a temp file, the quality sucks. If I can use the QImage itself without saving it to the harddrive, the quality will be better.
And yes, you can change the quality of the QImage temp file to a bigger size, et cetera, BUT I'm not working here with always the same QPrinter page size. This will depent on the costumer to which type of page size he wants to print...
Last edited by Taxi; 13th February 2012 at 17:53.
Look at the wiki article I wrote long long time ago. It should nevertheless still work: [wiki]QTextBrowser with images and CSS[/wiki]
Taxi (13th February 2012)
Thank but I'm at that point at the moment! Still, with the article you need to create an image file and reload it. Trying it not with a SVG rendered plot. Better quality :-)
Bookmarks