QPrintPreviewWidget Class Reference
[QtGui module]
Inherits QWidget.
Types
- enum ViewMode { SinglePageView, FacingPagesView, AllPagesView }
- enum ZoomMode { CustomZoom, FitToWidth, FitInView }
Methods
- __init__ (self, QPrinter, QWidget parent = None, Qt.WindowFlags flags = 0)
- __init__ (self, QWidget parent = None, Qt.WindowFlags flags = 0)
- int currentPage (self)
- fitInView (self)
- fitToWidth (self)
- int numPages (self)
- QPrinter.Orientation orientation (self)
- int pageCount (self)
- print_ (self)
- setAllPagesViewMode (self)
- setCurrentPage (self, int)
- setFacingPagesViewMode (self)
- setLandscapeOrientation (self)
- setOrientation (self, QPrinter.Orientation)
- setPortraitOrientation (self)
- setSinglePageViewMode (self)
- setViewMode (self, ViewMode)
- setVisible (self, bool)
- setZoomFactor (self, float)
- setZoomMode (self, ZoomMode)
- updatePreview (self)
- ViewMode viewMode (self)
- float zoomFactor (self)
- zoomIn (self, float factor = 1.1)
- ZoomMode zoomMode (self)
- zoomOut (self, float factor = 1.1)
Qt Signals
Detailed Description
Type Documentation
QPrintPreviewWidget.ViewMode
QPrintPreviewWidget.ZoomMode
Method Documentation
QPrintPreviewWidget.__init__ (self, QPrinter, QWidget parent = None, Qt.WindowFlags flags = 0)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QPrintPreviewWidget.__init__ (self, QWidget parent = None, Qt.WindowFlags flags = 0)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
int QPrintPreviewWidget.currentPage (self)
QPrintPreviewWidget.fitInView (self)
This method is also a Qt slot with the C++ signature void fitInView().
QPrintPreviewWidget.fitToWidth (self)
This method is also a Qt slot with the C++ signature void fitToWidth().
int QPrintPreviewWidget.numPages (self)
int QPrintPreviewWidget.pageCount (self)
QPrintPreviewWidget.print_ (self)
This method is also a Qt slot with the C++ signature void print().
QPrintPreviewWidget.setAllPagesViewMode (self)
This method is also a Qt slot with the C++ signature void setAllPagesViewMode().
QPrintPreviewWidget.setCurrentPage (self, int)
This method is also a Qt slot with the C++ signature void setCurrentPage(int).
QPrintPreviewWidget.setFacingPagesViewMode (self)
This method is also a Qt slot with the C++ signature void setFacingPagesViewMode().
QPrintPreviewWidget.setLandscapeOrientation (self)
This method is also a Qt slot with the C++ signature void setLandscapeOrientation().
QPrintPreviewWidget.setOrientation (self, QPrinter.Orientation)
This method is also a Qt slot with the C++ signature void setOrientation(QPrinter::Orientation).
QPrintPreviewWidget.setPortraitOrientation (self)
This method is also a Qt slot with the C++ signature void setPortraitOrientation().
QPrintPreviewWidget.setSinglePageViewMode (self)
This method is also a Qt slot with the C++ signature void setSinglePageViewMode().
QPrintPreviewWidget.setViewMode (self, ViewMode)
This method is also a Qt slot with the C++ signature void setViewMode(QPrintPreviewWidget::ViewMode).
QPrintPreviewWidget.setVisible (self, bool)
This method is also a Qt slot with the C++ signature void setVisible(bool).
QPrintPreviewWidget.setZoomFactor (self, float)
This method is also a Qt slot with the C++ signature void setZoomFactor(qreal).
QPrintPreviewWidget.setZoomMode (self, ZoomMode)
This method is also a Qt slot with the C++ signature void setZoomMode(QPrintPreviewWidget::ZoomMode).
QPrintPreviewWidget.updatePreview (self)
This method is also a Qt slot with the C++ signature void updatePreview().
ViewMode QPrintPreviewWidget.viewMode (self)
float QPrintPreviewWidget.zoomFactor (self)
QPrintPreviewWidget.zoomIn (self, float factor = 1.1)
This method is also a Qt slot with the C++ signature void zoomIn(qreal = 1.1).
ZoomMode QPrintPreviewWidget.zoomMode (self)
QPrintPreviewWidget.zoomOut (self, float factor = 1.1)
This method is also a Qt slot with the C++ signature void zoomOut(qreal = 1.1).
Qt Signal Documentation
void paintRequested (QPrinter *)
This is the default overload of this signal.
void previewChanged ()
This is the default overload of this signal.