View Full Version : No printer installed..?

21st February 2007, 08:14
Hi Buddies,
I am working in the printing related problem in Qt.
I dont know how to check the availability of PRINTERS in a system. So please let me send word a code snippet such that I can check whether any printer is installed in a system or not.

Kindly help me to solve this problem.

21st February 2007, 12:05
I think all you need is to call QPrinter::setup().

24th February 2007, 12:08
Hi Wysota,


QString QPrinter::printerName ()

This string returned is set to default printer name, if the default printer is not installed it returns a QString with a NULL value.

This is the solution which I have used in my code.:D