diff options
author | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-04-14 12:05:23 (GMT) |
---|---|---|
committer | Morten Engvoldsen <morten.engvoldsen@nokia.com> | 2009-04-14 12:05:54 (GMT) |
commit | 4db6f873386e7b21e23efb4a5ca31eb09f3dd94e (patch) | |
tree | 4234ec36755f7e95c881d6222c80fc9713be24e1 /src | |
parent | c28cb85841fb5be154c2460efdc82dde012407b9 (diff) | |
download | Qt-4db6f873386e7b21e23efb4a5ca31eb09f3dd94e.zip Qt-4db6f873386e7b21e23efb4a5ca31eb09f3dd94e.tar.gz Qt-4db6f873386e7b21e23efb4a5ca31eb09f3dd94e.tar.bz2 |
Adding note about setting properties to QPrinter
Setting properties on an invalid printer is not supported. Use isValid() to check if it valid.
Rev-by: Trond Kjernåsen
Rev-by: Geir Vattekar
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/painting/qprinter.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/painting/qprinter.cpp b/src/gui/painting/qprinter.cpp index 6c309c7..4f3e71c 100644 --- a/src/gui/painting/qprinter.cpp +++ b/src/gui/painting/qprinter.cpp @@ -284,6 +284,10 @@ void QPrinterPrivate::addToManualSetList(QPrintEngine::PrintEnginePropertyKey ke to send PostScript or PDF output to the printer. As an alternative, the printProgram() function can be used to specify the command or utility to use instead of the system default. + + Note that setting parameters like paper size and resolution on an + invalid printer is undefined. You can use QPrinter::isValid() to + verify this before changing any parameters. QPrinter supports a number of parameters, most of which can be changed by the end user through a \l{QPrintDialog}{print dialog}. In |