Eneboo - Documentación para desarrolladores
Métodos públicos | Métodos públicos estáticos
Referencia de la Clase QPrintDialog

The QPrintDialog class provides a dialog for specifying the printer's configuration. Más...

#include <qprintdialog.h>

Diagrama de herencias de QPrintDialog
QDialog QDialog QWidget QWidget QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject

Lista de todos los miembros.

Métodos públicos

 QPrintDialog (QPrinter *, QWidget *parent=0, const char *name=0)
 ~QPrintDialog ()
void setPrinter (QPrinter *, bool=FALSE)
QPrinterprinter () const
void addButton (QPushButton *but)
 QPrintDialog (QPrinter *, QWidget *parent=0, const char *name=0)
 ~QPrintDialog ()
void setPrinter (QPrinter *, bool=FALSE)
QPrinterprinter () const
void addButton (QPushButton *but)

Métodos públicos estáticos

static bool getPrinterSetup (QPrinter *, QWidget *=0)
static void setGlobalPrintDialog (QPrintDialog *)
static bool getPrinterSetup (QPrinter *, QWidget *=0)
static void setGlobalPrintDialog (QPrintDialog *)

Descripción detallada

The QPrintDialog class provides a dialog for specifying the printer's configuration.


Documentación del constructor y destructor

QPrintDialog::QPrintDialog ( QPrinter prn,
QWidget parent = 0,
const char *  name = 0 
)

Constructs a new modal printer dialog that configures prn and is a child of parent named name.

QPrintDialog::~QPrintDialog ( )

Destroys the object and frees any allocated resources. Does not delete the associated QPrinter object.

QPrintDialog::QPrintDialog ( QPrinter ,
QWidget parent = 0,
const char *  name = 0 
)
QPrintDialog::~QPrintDialog ( )

Documentación de las funciones miembro

void QPrintDialog::addButton ( QPushButton but)

Adds the button but to the layout of the print dialog. The added buttons are arranged from the left to the right below the last groupbox of the printdialog.

void QPrintDialog::addButton ( QPushButton but)
bool QPrintDialog::getPrinterSetup ( QPrinter p,
QWidget w = 0 
) [static]

Display a dialog and allow the user to configure the QPrinter p for an optional widget w. Returns TRUE if the user clicks OK or presses Enter, FALSE if the user clicks Cancel or presses Esc.

getPrinterSetup() remembers the settings and provides the same settings the next time the dialog is shown.

static bool QPrintDialog::getPrinterSetup ( QPrinter ,
QWidget = 0 
) [static]
QPrinter* QPrintDialog::printer ( ) const
QPrinter * QPrintDialog::printer ( ) const

Returns a pointer to the printer this dialog configures, or 0 if this dialog does not operate on any printer.

void QPrintDialog::setGlobalPrintDialog ( QPrintDialog pd) [static]

This method allows you to specify a global print dialog, given in pd, that will be used instead of the default dialog provided by Qt.

This is useful, since there are many different printing systems on Unix, and we cannot support all of them. Calling this method before using a printer for the first time allows you to set up your own print dialog.

Ver también:
setupPrinters()
static void QPrintDialog::setGlobalPrintDialog ( QPrintDialog ) [static]
void QPrintDialog::setPrinter ( QPrinter p,
bool  pickUpSettings = FALSE 
)

Sets this dialog to configure printer p, or no printer if p is null. If pickUpSettings is TRUE, the dialog reads most of its settings from p. If pickUpSettings is FALSE (the default) the dialog keeps its old settings.

void QPrintDialog::setPrinter ( QPrinter ,
bool  = FALSE 
)

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'