Hello,

i have the following code snippet:
------------------- cut ----------------
  QPrinter printer;;

  printer.setPrinterName (QString ());
  printer.setOutputFormat (QPrinter::PdfFormat);
  printer.setOutputFileName ("xxx.pdf");

  QPrintDialog dialog (&printer, this);

  dialog.exec ();
------------------- cut ----------------

But in the dialog a real printer is preselected. The file name is correctly set.

I can manually select print to PDF and write it to the file. But this is not the intention. I want to have PDF output preselected.

Qt ist 10.0.2 on linux (x64) installed with online installer.

What am i missing ?

regards

_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest

Reply via email to