QPrintPreviewWidget Class Reference |
Constant | Value | Description |
---|---|---|
QPrintPreviewWidget::SinglePageView | 0 | A mode where single pages in the preview is viewed. |
QPrintPreviewWidget::FacingPagesView | 1 | A mode where the facing pages in the preview is viewed. |
QPrintPreviewWidget::AllPagesView | 2 | A view mode where all the pages in the preview is viewed. |
This enum is used to describe zoom mode of the preview widget.
Constant | Value | Description |
---|---|---|
QPrintPreviewWidget::CustomZoom | 0 | The zoom is set to a custom zoom value. |
QPrintPreviewWidget::FitToWidth | 1 | This mode fits the current page to the width of the view. |
QPrintPreviewWidget::FitInView | 2 | This mode fits the current page inside the view. |
Constructs a QPrintPreviewWidget based on printer and with parent as the parent widget. The widget flags flags are passed on to the QWidget constructor.
See also QWidget::setWindowFlags().
This will cause QPrintPreviewWidget to create an internal, default constructed QPrinter object, which will be used to generate the preview.
Destroys the QPrintPreviewWidget.
Returns the currently viewed page in the preview.
See also setCurrentPage().
This is a convenience function and is the same as calling setZoomMode(QPrintPreviewWidget::FitInView).
This is a convenience function and is the same as calling setZoomMode(QPrintPreviewWidget::FitToWidth).
Returns the number of pages in the preview.
Returns the current orientation of the preview. This value is obtained from the QPrinter object associated with the preview.
See also setOrientation().
This signal is emitted when the preview widget needs to generate a set of preview pages. printer is the printer associated with this preview widget.
This signal is emitted whenever the preview widget has changed some internal state, such as the orientation.
Prints the preview to the printer associated with the preview.
This is a convenience function and is the same as calling setViewMode(QPrintPreviewWidget::AllPagesView).
Sets the current page in the preview. This will cause the view to skip to the beginning of page.
See also currentPage().
This is a convenience function and is the same as calling setViewMode(QPrintPreviewWidget::FacingPagesView).
This is a convenience function and is the same as calling setOrientation(QPrinter::Landscape).
Sets the current orientation to orientation. This value will be set on the QPrinter object associated with the preview.
See also orientation().
This is a convenience function and is the same as calling setOrientation(QPrinter::Landscape).
This is a convenience function and is the same as calling setViewMode(QPrintPreviewWidget::SinglePageView).
Sets the view mode to mode. The default view mode is SinglePageView.
See also viewMode().
Sets the zoom factor of the view to factor. For example, a value of 1.0 indicates an unscaled view, which is approximately the size the view will have on paper. A value of 0.5 will halve the size of the view, while a value of 2.0 will double the size of the view.
See also zoomFactor().
Sets the zoom mode to zoomMode. The default zoom mode is FitInView.
See also zoomMode(), viewMode(), and setViewMode().
This function updates the preview, which causes the paintRequested() signal to be emitted.
Returns the current view mode. The default view mode is SinglePageView.
See also setViewMode().
Returns the zoom factor of the view.
See also setZoomFactor().
Zooms the current view in by factor. The default value for factor is 1.1, which means the view will be scaled up by 10%.
Returns the current zoom mode.
See also setZoomMode(), viewMode(), and setViewMode().
Zooms the current view out by factor. The default value for factor is 1.1, which means the view will be scaled down by 10%.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com