KdePrint
Functions | |
QPrintDialog * | createPrintDialog (QPrinter *printer, const QList< QWidget * > &customTabs, QWidget *parent=nullptr) |
QPrintDialog * | createPrintDialog (QPrinter *printer, QWidget *parent=nullptr) |
Detailed Description
Namespace for the KDE printing system.
Function Documentation
◆ createPrintDialog() [1/2]
QPrintDialog * KdePrint::createPrintDialog | ( | QPrinter * | printer, |
const QList< QWidget * > & | customTabs, | ||
QWidget * | parent = nullptr |
||
) |
Creates a printer dialog for a QPrinter with the given custom widgets.
Note that the custom widgets are only supported on *nix systems and will not be shown on Qt versions prior to 4.3.2. On other systems it is preferred to provide the widgets within configuration dialog of the application.
Setting the widgets will transfer their ownership to the print dialog on all systems.
The caller takes ownership of the dialog and is responsible for deleting it.
- Parameters
-
printer the QPrinter to apply settings to parent the parent for the dialog customTabs a list of custom widgets to show as tabs, the name printed on the tab will be taken from the widgets windowTitle().
- Deprecated:
- since 5.0, use QPrintDialog::setOptionTabs (only supported on X11)
Definition at line 30 of file kdeprintdialog.cpp.
◆ createPrintDialog() [2/2]
QPrintDialog * KdePrint::createPrintDialog | ( | QPrinter * | printer, |
QWidget * | parent = nullptr |
||
) |
Creates a printer dialog for a QPrinter.
The caller takes ownership of the dialog and is responsible for deleting it.
- Parameters
-
printer the QPrinter to apply settings to parent the parent for the dialog
Definition at line 44 of file kdeprintdialog.cpp.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 04:02:03 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.