# class KPrintPreview

###

Module | kutils
Namespace |
Class | KPrintPreview
Inherits | KDialog

KPrintPreview provides a print preview dialog.

Use it like this:

    QPrinter printer;
    KPrintPreview preview(&printer);
    doPrint(printer); // draws to the QPrinter
    preview.exec();

### methods

- KPrintPreview (printer, parent)

  returns ctor
  KDE 4.1.0 and later only

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

  Create a KPrintPreview object.

  This will change the settings on the QPrinter, so you should not re-use the QPrinter object for printing normally.

  printer - pointer to a QPrinter to configure for print preview

  parent - pointer to the parent widget for the dialog

- KPrintPreview (a0, a1)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QPrinter |
  a1 | QWidget | 0

- showEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QShowEvent |