KPrinter::pageSize() never changes in 3.1.4
Todd Shoemaker
todd at theshoemakers.net
Fri Oct 10 19:17:11 CEST 2003
Michael-
Ignore my last email. I figured out that calling abort() before the
qpainter destructs will keep the print operation from actually
starting. The KDE progress dialog flashes briefly, but I'm sure I can
disable that somehow, and if not it will be acceptable for now.
Thanks again for your time,
-Todd Shoemaker
On Fri, 2003-10-10 at 17:47, Todd Shoemaker wrote:
> 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 */
> > }
> >
>
>
> _______________________________________________
> kde-print mailing list
> kde-print at mail.kde.org
> http://mail.kde.org/mailman/listinfo/kde-print
>
More information about the kde-print
mailing list