The code below shows what I am trying to do. I have a PRN file (or a PostScript file) that I just want to send to the selected printer.

Qt Code:
  1. QPrinter printer;
  2. QPrintDialog *dialog = new QPrintDialog(&printer, this);
  3. if (dialog->exec() == QDialog::Accepted) {
  4. QFile file("file.prn");
  5. // Send the file to the printer...
  6. }
To copy to clipboard, switch view to plain text mode