# Namespace KdePrint

Module | kdeui
Namespace | KdePrint

Namespace for the KDE printing system

### methods

- createPrintDialog (printer, customTabs, parent)

  returns QPrintDialog

  Argument | Type | Default
  --- | --- | ---
  printer | QPrinter |
  customTabs | QList<QWidget |
  parent | QWidget | 0

  Creates a printer dialog for a QPrinter with the given custom widgets.

  Note that the custom widgets will not be shown on Qt versions prior to 4.3.2.

  The caller takes ownership of the dialog and is responsible for deleting it.

  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().

  See also QWidget.setWindowTitle()

- createPrintDialog (printer, parent)

  returns QPrintDialog

  Argument | Type | Default
  --- | --- | ---
  printer | QPrinter |
  parent | QWidget | 0

  Creates a printer dialog for a QPrinter

  The caller takes ownership of the dialog and is responsible for deleting it.

  printer - the QPrinter to apply settings to

  parent - the parent for the dialog