Qyoto  4.0.7
Qyoto is a C# language binding for Qt
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
QtGui.QPrinterInfo Class Reference

The QPrinterInfo class gives access to information about existing printers. More...

Inheritance diagram for QtGui.QPrinterInfo:
Collaboration diagram for QtGui.QPrinterInfo:

Public Member Functions

 QPrinterInfo ()
  More...
 
 QPrinterInfo (QPrinterInfo other)
  More...
 
 QPrinterInfo (QPrinter printer)
  More...
 
virtual void CreateProxy ()
 
new void Dispose ()
 

Protected Member Functions

 QPrinterInfo (System.Type dummy)
 

Protected Attributes

SmokeInvocation interceptor
 

Properties

static
System.Collections.Generic.List
< QPrinterInfo
AvailablePrinters [get]
  More...
 
static QPrinterInfo DefaultPrinter [get]
  More...
 
bool IsDefault [get]
  More...
 
bool IsNull [get]
  More...
 
string PrinterName [get]
  More...
 
System.Collections.Generic.List
< QPrinter.PaperSize
SupportedPaperSizes [get]
  More...
 
virtual System.IntPtr SmokeObject [get, set]
 

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.

Constructor & Destructor Documentation

QtGui.QPrinterInfo.QPrinterInfo ( System.Type  dummy)
protected
QtGui.QPrinterInfo.QPrinterInfo ( )

Constructs an empty QPrinterInfo object.

See also isNull().

Here is the call graph for this function:

QtGui.QPrinterInfo.QPrinterInfo ( QPrinterInfo  other)

Constructs a copy of other.

This function was introduced in Qt 4.8.

Here is the call graph for this function:

QtGui.QPrinterInfo.QPrinterInfo ( QPrinter  printer)

Constructs a QPrinterInfo object from printer.

Here is the call graph for this function:

Member Function Documentation

virtual void QtGui.QPrinterInfo.CreateProxy ( )
virtual

Here is the caller graph for this function:

new void QtGui.QPrinterInfo.Dispose ( )

Member Data Documentation

SmokeInvocation QtGui.QPrinterInfo.interceptor
protected

Property Documentation

System.Collections.Generic.List<QPrinterInfo> QtGui.QPrinterInfo.AvailablePrinters
staticget

Returns a list of available printers on the system.

QPrinterInfo QtGui.QPrinterInfo.DefaultPrinter
staticget

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.

See also isNull().

bool QtGui.QPrinterInfo.IsDefault
get

Returns whether this printer is the default printer.

bool QtGui.QPrinterInfo.IsNull
get

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.

string QtGui.QPrinterInfo.PrinterName
get

Returns the name of the printer.

See also QPrinter::setPrinterName().

virtual System.IntPtr QtGui.QPrinterInfo.SmokeObject
getset
System.Collections.Generic.List<QPrinter.PaperSize> QtGui.QPrinterInfo.SupportedPaperSizes
get

Returns a list of supported paper sizes by the printer.

Not all printer drivers support this query, so the list may be empty. On Mac OS X 10.3, this function always returns an empty list.

This function was introduced in Qt 4.4.