pascal456
7th April 2006, 09:34
Dear all,
I'd like to use QPrinter without a call to QPrintDialog. The following sequence works:
QPrinter prt;
QPrintDialog dlg(&prt,this);
if(dlg.exec() == QDialog::Accepted)
{
// do the printing here
}
However, I'd like to have QPrinter send its postscript output to "kprinter" (or another program of my choice), at least in the unix version of my app.
I tried not to call QPrintDialog but to use
prt.setPrintProgram("kprinter");
but unfortunately this does not do anything.
Thanks for your help
Pascal
I'd like to use QPrinter without a call to QPrintDialog. The following sequence works:
QPrinter prt;
QPrintDialog dlg(&prt,this);
if(dlg.exec() == QDialog::Accepted)
{
// do the printing here
}
However, I'd like to have QPrinter send its postscript output to "kprinter" (or another program of my choice), at least in the unix version of my app.
I tried not to call QPrintDialog but to use
prt.setPrintProgram("kprinter");
but unfortunately this does not do anything.
Thanks for your help
Pascal