I would like to understand better the printing engine.
I would print a PDF under Windows: is it possible?

Qt Code:
  1. void MyPlot::printOut()
  2. {
  3. QPrinter printer(QPrinter::HighResolution);
  4.  
  5. printer.setOutputFileName(tr("diagrammasolare.pdf"));
  6.  
  7. printer.setOutputFormat(QPrinter::PdfFormat);
  8. printer.setCreator("Solar Calc");
  9. printer.setOrientation(QPrinter::Landscape);
  10.  
  11. QPrintDialog dialog(&printer);
  12. if ( dialog.exec() )
  13. {
  14. // if ( printer.colorMode() == QPrinter::GrayScale )
  15. {
  16. int options = QwtPlotPrintFilter::PrintAll;
  17. options &= ~QwtPlotPrintFilter::PrintBackground;
  18. options |= QwtPlotPrintFilter::PrintFrameWithScales;
  19. filter.setOptions(options);
  20. }
  21.  
  22. print(printer,filter);
  23.  
  24.  
  25.  
  26. }
  27. }
To copy to clipboard, switch view to plain text mode 
With this code, which is good under windows, I cannot get printing the pdf under windows.
No dialog shows up and the message
only native format supported is shown.

So, is it possible to print pdf under Windows?
G