[Qt-interest] QtWebKit: QWebView printing with backgrounds (setShouldPrintBackgrounds)
simon.hausmann at nokia.com
simon.hausmann at nokia.com
Tue Jan 6 09:42:10 CET 2009
Hi Ilya,
In Qt 4.5's QWebSettings class there will be an option for enabling and disabling the printing of backgrounds.
(settings->setAttribute(QWebSettings::PrintElementBackgrounds, false);
Simon
________________________________________
From: qt-interest-bounces at trolltech.com [qt-interest-bounces at trolltech.com] On Behalf Of ext Ilya Schurov [ilya.schurov at noo.ru]
Sent: Monday, January 05, 2009 22:42
To: Qt-interest at trolltech.com
Subject: Re: [Qt-interest] QtWebKit: QWebView printing with backgrounds (setShouldPrintBackgrounds)
Hmm... Still no answer. Maybe, there is a better place to ask such
questions somewhere? (Unfortunately, I'm not found it yet.)
--
Regards,
Ilya V. Schurov.
Ilya Schurov wrote:
> Hi there,
>
> It seems that WebKit have a feature which turns on printing of
> backgrounds (see
> http://lists.apple.com/archives/Webkitsdk-dev/2004/Sep/msg00006.html for
> example). I'm trying to use nice program wkhtmltopdf to convert HTML+CSS
> to PDF using QtWebkit, however it doesn't have such a feature. As far as
> I understand from the discussion here:
>
> http://code.google.com/p/wkhtmltopdf/issues/detail?id=5
>
> this is due to Qt doesn't have a good way to turn it on. The solution
> presented in that discussion looks very simply, however I'm not sure I
> want to re-build my Qt instance to apply that patch and then maintain
> this modified version.
>
> So, I'd like to ask, is that problem already solved in Qt, or is it
> going to be solved, or where should I place a bugreport (feature
> request) to make it solved or where should I ask that question above? :)
>
> Thanks in advance!
>
_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list