Eneboo - Documentación para desarrolladores
|
The QPrintDialog class provides a dialog for specifying the printer's configuration. Más...
#include <qprintdialog.h>
Métodos públicos | |
QPrintDialog (QPrinter *, QWidget *parent=0, const char *name=0) | |
~QPrintDialog () | |
void | setPrinter (QPrinter *, bool=FALSE) |
QPrinter * | printer () const |
void | addButton (QPushButton *but) |
QPrintDialog (QPrinter *, QWidget *parent=0, const char *name=0) | |
~QPrintDialog () | |
void | setPrinter (QPrinter *, bool=FALSE) |
QPrinter * | printer () 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 *) |
The QPrintDialog class provides a dialog for specifying the printer's configuration.
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 | ( | ) |
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 | ) |
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.
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.
static void QPrintDialog::setGlobalPrintDialog | ( | QPrintDialog * | ) | [static] |
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.