In QT3 the code
Qt Code:
  1. QPrinter myprinter; // = new QPrinter();
  2. myprinter.setPageSize( QPrinter::Letter );
  3. myprinter.setOrientation( QPrinter::Portrait );
  4. myprinter.setColorMode( QPrinter::Color );
  5. myprinter.setFullPage ( true );
  6. ret = myprinter.setup();
  7. if( ret == true )
  8. {
  9. QPainter p( &myprinter );
To copy to clipboard, switch view to plain text mode 
gave the user of a program the oppurtunity to change the default perameters for a print out. Qt4 says to use "QPrintDialog printDialog" for this.
The "Detailed Description" for this function says
Typically, QPrintDialog objects are constructed with a QPrinter object, and executed using the exec() function.

QPrintDialog printDialog(printer, parent);
if (printDialog.exec() == QDialog::Accepted) {
// print ...
}
I am a bit of a newbie in deciphering Qt4's style of documentation and with no print examples that I can find I need help.

Thanks