KDE 4.7 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

KPrintPreview Class Reference

from PyKDE4.kutils import *

Inherits: KDialog → QDialog → QWidget → QObject

Detailed Description

KPrintPreview provides a print preview dialog.

Use it like this:

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


Methods

 __init__ (self, QPrinter printer, QWidget parent=0)
 showEvent (self, QShowEvent event)

Static Methods

bool isAvailable ()

Method Documentation

__init__ (  self,
QPrinter  printer,
QWidget  parent=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.

Parameters:
printer  pointer to a QPrinter to configure for print preview
parent  pointer to the parent widget for the dialog

showEvent (  self,
QShowEvent  event
)

Static Method Documentation

bool isAvailable (   )

Returns true if the print preview system is available

Since:
KDE 4.5

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal