QPrinter is a class in the Qt framework's QtGui module that allows applications to print documents to a printer.
The setPageSize() function is used to set the page size for a QPrinter object. The function takes a QPrinter::PageSize enum value as its argument, which specifies the desired paper size.
Example 1: Setting the page size of a QPrinter object to A4 size.
These code examples demonstrate how to use the setPageSize() function to set the page size of a QPrinter object to a specific value. The Qt framework package library is required to use the QPrinter class and other Qt classes.
C++ (Cpp) QPrinter::setPageSize - 27 examples found. These are the top rated real world C++ (Cpp) examples of QPrinter::setPageSize extracted from open source projects. You can rate examples to help us improve the quality of examples.