In QT3 the codegave the user of a program the oppurtunity to change the default perameters for a print out. Qt4 says to use "QPrintDialog printDialog" for this.Qt Code:
QPrinter myprinter; // = new QPrinter(); myprinter.setFullPage ( true ); ret = myprinter.setup(); if( ret == true ) {To copy to clipboard, switch view to plain text mode
The "Detailed Description" for this function saysI 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.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 ...
}
Thanks
Bookmarks