QPrinterInfo Class The QPrinterInfo class gives access to information about existing printers. More...  
 Header:
 #include <QPrinterInfo> 


 qmake:
 QT += printsupport


 Since:
 Qt 4.4


 List of all members, including inherited members Obsolete members  Public Functions  
 

QPrinterInfo()
 
 

QPrinterInfo(const QPrinterInfo &other)
 
 

QPrinterInfo(const QPrinter &printer)
 
 

~QPrinterInfo()
 
 QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069uplexMode 

defaultDuplexMode() const
 
 QPageSize 

defaultPageSize() const
 
 QString 

description() const
 
 bool 

isDefault() const
 
 bool 

isNull() const
 
 bool 

isRemote() const
 
 QString 

location() const
 
 QString 

makeAndModel() const
 
 QPageSize 

maximumPhysicalPageSize() const
 
 QPageSize 

minimumPhysicalPageSize() const
 
 QString 

printerName() const
 
 QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069PrinterState 

state() const
 
 QList<QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069uplexMode> 

supportedDuplexModes() const
 
 QList<QPageSize> 

supportedPageSizes() const
 
 QList<int> 

supportedResolutions() const
 
 bool 

supportsCustomPageSizes() const
 
 QPrinterInfo &

operator=(const QPrinterInfo &other)
  Static Public Members  
 QStringList 

availablePrinterNames()
 
 QList<QPrinterInfo> 

availablePrinters()
 
 QPrinterInfo 

defaultPrinter()
 
 QString 

defaultPrinterName()
 
 QPrinterInfo 

printerInfo(const QString &printerName)
  Detailed Description The QPrinterInfo class gives access to information about existing printers. Use the static functions to generate a list of QPrinterInfo objects. Each QPrinterInfo object in the list represents a single printer and can be queried for name, supported paper sizes, and whether or not it is the default printer. Member Function Documentation 
QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069QPrinterInfo() Constructs an empty QPrinterInfo object. See also isNull(). 
QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069QPrinterInfo(const QPrinterInfo &other) Constructs a copy of other. 
QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069QPrinterInfo(const QPrinter &printer) Constructs a QPrinterInfo object from printer. 
QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069~QPrinterInfo() Destroys the QPrinterInfo object. References to the values in the object become invalid. 
[static] QStringList QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069vailablePrinterNames() Returns a list of all the available Printer Names on this system. It is recommended to use this instead of availablePrinters() as it will be faster on most systems. Note that the list may become outdated if changes are made on the local system or remote print server. Only instantiate required QPrinterInfo instances when needed, and always check for validity before calling. This function was introduced in Qt 5.3. 
[static] QList<QPrinterInfo> QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069vailablePrinters() Returns a list of QPrinterInfo objects for all the available printers on this system. It is NOT recommended to use this as creating each printer instance may take a long time, especially if there are remote networked printers, and retained instances may become outdated if changes are made on the local system or remote print server. Use availablePrinterNames() instead and only instantiate printer instances as you need them. 
QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069uplexMode QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069ultDuplexMode() const Returns the default duplex mode of this printer. This function was introduced in Qt 5.4. 
QPageSize QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069ultPageSize() const Returns the current default Page Size for this printer. This function was introduced in Qt 5.3. 
[static] QPrinterInfo QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069ultPrinter() Returns the default printer on the system. The return value should be checked using isNull() before being used, in case there is no default printer. On some systems it is possible for there to be available printers but none of them set to be the default printer. See also isNull(), isDefault(), and availablePrinters(). 
[static] QString QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069ultPrinterName() Returns the current default printer name. This function was introduced in Qt 5.3. 
QString QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069scription() const Returns the human-readable description of the printer. This function was introduced in Qt 5.0. See also QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069printerName(). 
bool QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069isDefault() const Returns whether this printer is currently the default printer. 
bool QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069isNull() const Returns whether this QPrinterInfo object holds a printer definition. An empty QPrinterInfo object could result for example from calling defaultPrinter() when there are no printers on the system. 
bool QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069isRemote() const Returns whether this printer is a remote network printer. This function was introduced in Qt 5.3. 
QString QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069location() const Returns the human-readable location of the printer. This function was introduced in Qt 5.0. 
QString QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069makeAndModel() const Returns the human-readable make and model of the printer. This function was introduced in Qt 5.0. 
QPageSize QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069maximumPhysicalPageSize() const Returns the maximum physical page size supported by this printer. This function was introduced in Qt 5.3. See also minimumPhysicalPageSize(). 
QPageSize QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069minimumPhysicalPageSize() const Returns the minimum physical page size supported by this printer. This function was introduced in Qt 5.3. See also maximumPhysicalPageSize(). 
[static] QPrinterInfo QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069printerInfo(const QString &printerName) Returns the printer printerName. The return value should be checked using isNull() before being used, in case the named printer does not exist. This function was introduced in Qt 5.0. See also isNull(). 
QString QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069printerName() const Returns the name of the printer. This is a unique id to identify the printer and may not be human-readable. See also QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069scription() and QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069setPrinterName(). 
QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069PrinterState QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069state() const Returns the current state of this printer. This state may not always be accurate, depending on the platform, printer driver, or printer itself. This function was introduced in Qt 5.3. 
QList<QPrinter8b7c:f320:99b9:690f:4595:cd17:293a:c069uplexMode> QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069supportedDuplexModes() const Returns a list of duplex modes supported by this printer. This function was introduced in Qt 5.4. 
QList<QPageSize> QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069supportedPageSizes() const Returns a list of Page Sizes supported by this printer. This function was introduced in Qt 5.3. 
QList<int> QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069supportedResolutions() const Returns a list of resolutions supported by this printer. This function was introduced in Qt 5.3. 
bool QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069supportsCustomPageSizes() const Returns whether this printer supports custom page sizes. This function was introduced in Qt 5.3. 
QPrinterInfo &QPrinterInfo8b7c:f320:99b9:690f:4595:cd17:293a:c069operator=(const QPrinterInfo &other) Sets the QPrinterInfo object to be equal to other.

    
{'path': 'public/docs/qt~5.9/qprinterinfo.html', 'source': 'DevDocs.IO'}