KPrinter::pageSize() never changes in 3.1.4

Todd Shoemaker todd at theshoemakers.net
Fri Oct 10 18:47:19 CEST 2003


Thanks for the quick and helpful response!  The QPainter actually
invokes the print operation, which is not applicable to this scenario. 
This is part of a wizard process where the page size is needed to select
available photo sizes on the next page, and after later pages the print
operation is actually begun or cancelled. 

I'll try to rework my algorithms to not rely on pageSize().  If that
doesn't work, I can always use QPrinter as a substitute for this
particular use.

Thanks,

-Todd

On Fri, 2003-10-10 at 06:06, Michael Goffioul wrote:
> For internal reasons you have first to build a QPainter object
> on KPrinter. This will trigger the synchronization between
> the KPrinter object and the selected options.
> 
> if (kprinter.setup())
> {
>     QPainter painter(&kprinter);
>     /* now kprinter.pageSize() should return the correct value */
> }
> 




More information about the kde-print mailing list