KdePrint

KdePrint Namespace Reference

Functions

QPrintDialogcreatePrintDialog (QPrinter *printer, const QList< QWidget * > &customTabs, QWidget *parent=nullptr)
 
QPrintDialogcreatePrintDialog (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
printerthe QPrinter to apply settings to
parentthe parent for the dialog
customTabsa 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
printerthe QPrinter to apply settings to
parentthe parent for the dialog

Definition at line 44 of file kdeprintdialog.cpp.

This file is part of the KDE documentation.
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.