[Qt-interest] qt windows set default printer

Heiko Steindl heiko at kom.at
Sat Jan 15 21:01:43 CET 2011


Hello Andreas!

Take a look at the QPrinterInfo Class, there is a static function to get the default Printer (QPrinterInfo::defaultPrinter).

You can setup your QPrinter object directly with the default printer:

QPrinter printer( QPrinterInfo::defaultPrinter() );

I hope this helps you.

Kind regards

Heiko
--


Mit freundlichen Grüßen

Heiko Steindl

Computerhaus EDV-Handels Ges.m.b.H
Wienerstrasse 26
8605 Kapfenberg AUSTRIA

Tel: +43 (0)3862 27777
Fax: +43 (0)3862 27777 77
Mobil: +43 (0)676 3727777
E-Mail: heiko at kom.at

Am 15.01.2011 um 16:30 schrieb Andreas Moroder:

> 
>> Qt has no functions for system administration. You have to use pltform-specific 
>> calls.
>> 
>> 
> Hello Thiago,
> 
> thank you for your quick answer. I will use a API call.
> Is there a way to *get* the default printer ?
> 
> Thanks
> Andreas
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
> 




More information about the Qt-interest-old mailing list