[PyQt] Problem with printing to pdf
Mark Summerfield
list at qtrac.plus.com
Mon Jun 7 16:16:05 BST 2010
On 2010-06-07, mille kink wrote:
> Dear,
>
> I'm creating an application where there are several pdf's being
> created in batch.
> As far as creating the pdf's there is no problem, all is working smooth.
>
> Im using a QWebview to build up the document and then print it to a
> QPrinter
>
>
> But now comes the question. Is there a signal to attach to a QPrinter
> to know when the printing is done or is there any way of knowing
> when the printer is done, so I can start the next file.
>
> Hopefully this is not a to stupid question but I've been searching the
> net and could not find an answer.
I'm not aware of any signal that will tell you this, so I'd suggest
polling QPrinter.printerState().
--
Mark Summerfield, Qtrac Ltd, www.qtrac.eu
C++, Python, Qt, PyQt - training and consultancy
"Advanced Qt Programming" - ISBN 0321635906
More information about the PyQt
mailing list