AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Collate meaning printing3/14/2023 This usually makes sense because, for example, it's not possible to change the number of copies when you are halfway through printing. Many of these functions can only be called before the actual printing begins (i.e., before QPainter::begin() is called). setCopåount() tells QPrinter how many copies of the document it should print.setFullPage() tells QPrinter whether you want to deal with the full page or just with the part the printer can draw on.setResolution() tells QPrinter what resolution you wish the printer to provide, in dots per inch (DPI).setPageLayout() tells QPrinter which page orientation to use, and what size to expect from the printer.In general, QPrinter passes these functions onto the underlying QPrintEngine. QPrinter supports a number of parameters, most of which can be changed by the end user through a print dialog. You can use QPrinter::isValid() to verify this before changing any parameters. Note that setting parameters like paper size and resolution on an invalid printer is undefined. As an alternative, the printProgram() function can be used to specify the command or utility to use instead of the system default. On X11, QPrinter uses the Common Unix Printing System (CUPS) to send PDF output to the printer. When printing directly to a printer on Windows or macOS, QPrinter uses the built-in printer drivers. A set of additional functions are provided to manage device-specific features, such as orientation and resolution, and to step through the pages in a document as it is generated. This device represents a series of pages of printed output, and is used in almost exactly the same way as other paint devices such as QWidget and QPixmap. SetPrinterSelectionOption(const QString & option) SetPrintRange(QPrinter::PrintRange range) SetPrintProgram(const QString & printProg) SetPdfVersion(QPagedPaintDevice::PdfVersion version) SetPaperSource(QPrinter::PaperSource source) SetPageOrder(QPrinter::PageOrder pageOrder) SetOutputFormat(QPrinter::OutputFormat format) SetOutputFileName(const QString & fileName) SetColorMode(QPrinter::ColorMode newColorMode) QPrinter(QPrinter::PrinterMode mode = ScreenResolution) QPrinter(const QPrinterInfo & printer, QPrinter::PrinterMode mode = ScreenResolution)
0 Comments
Read More
Leave a Reply. |