PDA

View Full Version : Checking printer queue (jobs)



Tiansen
29th October 2008, 16:50
Hello to all,

I want to check if there are any jobs left in printer queue. I cannot find a Qt function that would do that. Am I missing something? If it is not possible with Qt functions - which other approaches do you recommend?

Thank you

pastor
29th October 2008, 17:14
Hello!

I think, you can use QPrinter::printerState method for that. Please see description of enum QPrinter::PrinterState for more details.

Tiansen
30th October 2008, 11:28
Hmm, does not seem to work. I always get Idle, even if the printer is printing. If I print out printerName I get a name of default printer, so I am observing the correct printer.