[Qt] Printing with WebKit
zeljko
zeljko at holobit.net
Mon Sep 7 14:16:28 CEST 2009
On Monday 07 September 2009 13:08, aime2nice at oqvrai.net wrote:
> Hi,
>
> I use qwebview to display pages Html in my application. This works fine,
> in Windows, Linux, Mac OSx (i386 and powerpc). But, when I want print the
> content of my qwebview, I have just a blank page, on Windows only.
>
> This is the code I use:
> qwebview_print(webview1.handle,webview1.hprinter);
>
> where hprinter is :
>
> hprinter := QPrinter_create();
>
> Why the page is blank on printer?
> Have any idea?
What says QPrinter_isValid(), QPrinter_printerName(),
QPrinter_printProgram().. QPrinter_outputFormat() ?
eg:
hprinter .= QPrinter_create();
QPrinter_isValid(hprinter);
QPrinter_printerName(hprinter);
QPrinter_outputFormat(hprinter);
QPrinter_printProgram(hprinter);
QPrinter_pageSize(hprinter);
More information about the Qt
mailing list