Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 2192

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qprintpreviewwidget.cpp -->
  <title>QPrintPreviewWidget Class | Qt Print Support 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtprintsupport-index.html">Qt Print Support</a></td><td ><a href="qtprintsupport-module.html">C++ Classes</a></td><td >QPrintPreviewWidget</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#reimplemented-public-functions">Reimplemented Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QPrintPreviewWidget Class</h1>
<!-- $$$QPrintPreviewWidget-brief -->
<p>The <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> class provides a widget for previewing page layouts for printer output. <a href="#details">More...</a></p>
<!-- @@@QPrintPreviewWidget -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QPrintPreviewWidget&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += printsupport</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Since:</td><td class="memItemRight bottomAlign">  Qt 4.4</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="../qtwidgets/qwidget.html">QWidget</a></td></tr></table></div><ul>
<li><a href="qprintpreviewwidget-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#ViewMode-enum">ViewMode</a></b> { SinglePageView, FacingPagesView, AllPagesView }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#ZoomMode-enum">ZoomMode</a></b> { CustomZoom, FitToWidth, FitInView }</td></tr>
</table></div>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#QPrintPreviewWidget">QPrintPreviewWidget</a></b>(QPrinter *<i>printer</i>, QWidget *<i>parent</i> = Q_NULLPTR, Qt::WindowFlags <i>flags</i> = Qt::WindowFlags())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#QPrintPreviewWidget-1">QPrintPreviewWidget</a></b>(QWidget *<i>parent</i> = Q_NULLPTR, Qt::WindowFlags <i>flags</i> = Qt::WindowFlags())</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#dtor.QPrintPreviewWidget">~QPrintPreviewWidget</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#currentPage">currentPage</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QPrinter::Orientation </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#orientation">orientation</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#pageCount">pageCount</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ViewMode </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#viewMode">viewMode</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> qreal </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#zoomFactor">zoomFactor</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ZoomMode </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#zoomMode">zoomMode</a></b>() const</td></tr>
</table></div>
<a name="reimplemented-public-functions"></a>
<h2 id="reimplemented-public-functions">Reimplemented Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setVisible">setVisible</a></b>(bool <i>visible</i>)</td></tr>
</table></div>
<ul>
<li class="fn">216 public functions inherited from <a href="../qtwidgets/qwidget.html#public-functions">QWidget</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#fitInView">fitInView</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#fitToWidth">fitToWidth</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#print">print</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setAllPagesViewMode">setAllPagesViewMode</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setCurrentPage">setCurrentPage</a></b>(int <i>page</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setFacingPagesViewMode">setFacingPagesViewMode</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setLandscapeOrientation">setLandscapeOrientation</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setOrientation">setOrientation</a></b>(QPrinter::Orientation <i>orientation</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setPortraitOrientation">setPortraitOrientation</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setSinglePageViewMode">setSinglePageViewMode</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setViewMode">setViewMode</a></b>(ViewMode <i>mode</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setZoomFactor">setZoomFactor</a></b>(qreal <i>factor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#setZoomMode">setZoomMode</a></b>(ZoomMode <i>zoomMode</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#updatePreview">updatePreview</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#zoomIn">zoomIn</a></b>(qreal <i>factor</i> = 1.1)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#zoomOut">zoomOut</a></b>(qreal <i>factor</i> = 1.1)</td></tr>
</table></div>
<ul>
<li class="fn">19 public slots inherited from <a href="../qtwidgets/qwidget.html#public-slots">QWidget</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#paintRequested">paintRequested</a></b>(QPrinter *<i>printer</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintpreviewwidget.html#previewChanged">previewChanged</a></b>()</td></tr>
</table></div>
<ul>
<li class="fn">3 signals inherited from <a href="../qtwidgets/qwidget.html#signals">QWidget</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">59 properties inherited from <a href="../qtwidgets/qwidget.html#properties">QWidget</a></li>
<li class="fn">5 static public members inherited from <a href="../qtwidgets/qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">35 protected functions inherited from <a href="../qtwidgets/qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">1 protected slot inherited from <a href="../qtwidgets/qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QPrintPreviewWidget-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> class provides a widget for previewing page layouts for printer output.</p>
<p><a href="qprintpreviewdialog.html">QPrintPreviewDialog</a> uses a <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> internally, and the purpose of <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> is to make it possible to embed the preview into other widgets. It also makes it possible to build a different user interface around it than the default one provided with <a href="qprintpreviewdialog.html">QPrintPreviewDialog</a>.</p>
<p>Using <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> is straightforward:</p>
<ol class="1" type="1"><li>Create the <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a><p>Construct the <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> either by passing in an existing <a href="qprinter.html">QPrinter</a> object, or have <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> create a default constructed <a href="qprinter.html">QPrinter</a> object for you.</p>
</li>
<li>Connect the <a href="qprintpreviewwidget.html#paintRequested">paintRequested</a>() signal to a slot.<p>When the widget needs to generate a set of preview pages, a <a href="qprintpreviewwidget.html#paintRequested">paintRequested</a>() signal will be emitted from the widget. Connect a slot to this signal, and draw onto the <a href="qprinter.html">QPrinter</a> passed in as a signal parameter. Call <a href="qprinter.html#newPage">QPrinter::newPage</a>(), to start a new page in the preview.</p>
</li>
</ol>
</div>
<p><b>See also </b><a href="qprinter.html">QPrinter</a>, <a href="qprintdialog.html">QPrintDialog</a>, <a href="qpagesetupdialog.html">QPageSetupDialog</a>, and <a href="qprintpreviewdialog.html">QPrintPreviewDialog</a>.</p>
<!-- @@@QPrintPreviewWidget -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ViewMode$$$SinglePageView$$$FacingPagesView$$$AllPagesView -->
<h3 class="fn" id="ViewMode-enum"><a name="ViewMode-enum"></a>enum QPrintPreviewWidget::<span class="name">ViewMode</span></h3>
<p>This enum is used to describe the view mode of the preview widget.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QPrintPreviewWidget::SinglePageView</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">A mode where single pages in the preview is viewed.</td></tr>
<tr><td class="topAlign"><code>QPrintPreviewWidget::FacingPagesView</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">A mode where the facing pages in the preview is viewed.</td></tr>
<tr><td class="topAlign"><code>QPrintPreviewWidget::AllPagesView</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">A view mode where all the pages in the preview is viewed.</td></tr>
</table></div>
<!-- @@@ViewMode -->
<!-- $$$ZoomMode$$$CustomZoom$$$FitToWidth$$$FitInView -->
<h3 class="fn" id="ZoomMode-enum"><a name="ZoomMode-enum"></a>enum QPrintPreviewWidget::<span class="name">ZoomMode</span></h3>
<p>This enum is used to describe zoom mode of the preview widget.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code>QPrintPreviewWidget::CustomZoom</code></td><td class="topAlign tblval"><code>0</code></td><td class="topAlign">The zoom is set to a custom zoom value.</td></tr>
<tr><td class="topAlign"><code>QPrintPreviewWidget::FitToWidth</code></td><td class="topAlign tblval"><code>1</code></td><td class="topAlign">This mode fits the current page to the width of the view.</td></tr>
<tr><td class="topAlign"><code>QPrintPreviewWidget::FitInView</code></td><td class="topAlign tblval"><code>2</code></td><td class="topAlign">This mode fits the current page inside the view.</td></tr>
</table></div>
<!-- @@@ZoomMode -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QPrintPreviewWidget[overload1]$$$QPrintPreviewWidgetQPrinter*QWidget*Qt::WindowFlags -->
<h3 class="fn" id="QPrintPreviewWidget"><a name="QPrintPreviewWidget"></a>QPrintPreviewWidget::<span class="name">QPrintPreviewWidget</span>(<span class="type"><a href="qprinter.html">QPrinter</a></span> *<i>printer</i>, <span class="type"><a href="../qtwidgets/qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = Q_NULLPTR, <span class="type"><a href="../qtcore/qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>flags</i> = Qt::WindowFlags())</h3>
<p>Constructs a <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> based on <i>printer</i> and with <i>parent</i> as the parent widget. The widget flags <i>flags</i> are passed on to the <a href="../qtwidgets/qwidget.html">QWidget</a> constructor.</p>
<p><b>See also </b><a href="../qtwidgets/qwidget.html#windowFlags-prop">QWidget::setWindowFlags</a>().</p>
<!-- @@@QPrintPreviewWidget -->
<!-- $$$QPrintPreviewWidget$$$QPrintPreviewWidgetQWidget*Qt::WindowFlags -->
<h3 class="fn" id="QPrintPreviewWidget-1"><a name="QPrintPreviewWidget-1"></a>QPrintPreviewWidget::<span class="name">QPrintPreviewWidget</span>(<span class="type"><a href="../qtwidgets/qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = Q_NULLPTR, <span class="type"><a href="../qtcore/qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>flags</i> = Qt::WindowFlags())</h3>
<p>This is an overloaded function.</p>
<p>This will cause <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a> to create an internal, default constructed <a href="qprinter.html">QPrinter</a> object, which will be used to generate the preview.</p>
<!-- @@@QPrintPreviewWidget -->
<!-- $$$~QPrintPreviewWidget[overload1]$$$~QPrintPreviewWidget -->
<h3 class="fn" id="dtor.QPrintPreviewWidget"><a name="dtor.QPrintPreviewWidget"></a>QPrintPreviewWidget::<span class="name">~QPrintPreviewWidget</span>()</h3>
<p>Destroys the <a href="qprintpreviewwidget.html">QPrintPreviewWidget</a>.</p>
<!-- @@@~QPrintPreviewWidget -->
<!-- $$$currentPage[overload1]$$$currentPage -->
<h3 class="fn" id="currentPage"><a name="currentPage"></a><span class="type">int</span> QPrintPreviewWidget::<span class="name">currentPage</span>() const</h3>
<p>Returns the currently viewed page in the preview.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#setCurrentPage">setCurrentPage</a>().</p>
<!-- @@@currentPage -->
<!-- $$$fitInView[overload1]$$$fitInView -->
<h3 class="fn" id="fitInView"><a name="fitInView"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">fitInView</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setZoomMode(QPrintPreviewWidget::FitInView)</code>.</p>
<!-- @@@fitInView -->
<!-- $$$fitToWidth[overload1]$$$fitToWidth -->
<h3 class="fn" id="fitToWidth"><a name="fitToWidth"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">fitToWidth</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setZoomMode(QPrintPreviewWidget::FitToWidth)</code>.</p>
<!-- @@@fitToWidth -->
<!-- $$$orientation[overload1]$$$orientation -->
<h3 class="fn" id="orientation"><a name="orientation"></a><span class="type"><a href="qprinter.html#Orientation-enum">QPrinter::Orientation</a></span> QPrintPreviewWidget::<span class="name">orientation</span>() const</h3>
<p>Returns the current orientation of the preview. This value is obtained from the <a href="qprinter.html">QPrinter</a> object associated with the preview.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#setOrientation">setOrientation</a>().</p>
<!-- @@@orientation -->
<!-- $$$pageCount[overload1]$$$pageCount -->
<h3 class="fn" id="pageCount"><a name="pageCount"></a><span class="type">int</span> QPrintPreviewWidget::<span class="name">pageCount</span>() const</h3>
<p>Returns the number of pages in the preview.</p>
<p>This function was introduced in  Qt 4.6.</p>
<!-- @@@pageCount -->
<!-- $$$paintRequested[overload1]$$$paintRequestedQPrinter* -->
<h3 class="fn" id="paintRequested"><a name="paintRequested"></a><code>[signal] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">paintRequested</span>(<span class="type"><a href="qprinter.html">QPrinter</a></span> *<i>printer</i>)</h3>
<p>This signal is emitted when the preview widget needs to generate a set of preview pages. <i>printer</i> is the printer associated with this preview widget.</p>
<!-- @@@paintRequested -->
<!-- $$$previewChanged[overload1]$$$previewChanged -->
<h3 class="fn" id="previewChanged"><a name="previewChanged"></a><code>[signal] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">previewChanged</span>()</h3>
<p>This signal is emitted whenever the preview widget has changed some internal state, such as the orientation.</p>
<!-- @@@previewChanged -->
<!-- $$$print[overload1]$$$print -->
<h3 class="fn" id="print"><a name="print"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">print</span>()</h3>
<p>Prints the preview to the printer associated with the preview.</p>
<!-- @@@print -->
<!-- $$$setAllPagesViewMode[overload1]$$$setAllPagesViewMode -->
<h3 class="fn" id="setAllPagesViewMode"><a name="setAllPagesViewMode"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setAllPagesViewMode</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setViewMode(QPrintPreviewWidget::AllPagesView)</code>.</p>
<!-- @@@setAllPagesViewMode -->
<!-- $$$setCurrentPage[overload1]$$$setCurrentPageint -->
<h3 class="fn" id="setCurrentPage"><a name="setCurrentPage"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setCurrentPage</span>(<span class="type">int</span> <i>page</i>)</h3>
<p>Sets the current page in the preview. This will cause the view to skip to the beginning of <i>page</i>.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#currentPage">currentPage</a>().</p>
<!-- @@@setCurrentPage -->
<!-- $$$setFacingPagesViewMode[overload1]$$$setFacingPagesViewMode -->
<h3 class="fn" id="setFacingPagesViewMode"><a name="setFacingPagesViewMode"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setFacingPagesViewMode</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setViewMode(QPrintPreviewWidget::FacingPagesView)</code>.</p>
<!-- @@@setFacingPagesViewMode -->
<!-- $$$setLandscapeOrientation[overload1]$$$setLandscapeOrientation -->
<h3 class="fn" id="setLandscapeOrientation"><a name="setLandscapeOrientation"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setLandscapeOrientation</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setOrientation(QPrinter::Landscape)</code>.</p>
<!-- @@@setLandscapeOrientation -->
<!-- $$$setOrientation[overload1]$$$setOrientationQPrinter::Orientation -->
<h3 class="fn" id="setOrientation"><a name="setOrientation"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setOrientation</span>(<span class="type"><a href="qprinter.html#Orientation-enum">QPrinter::Orientation</a></span> <i>orientation</i>)</h3>
<p>Sets the current orientation to <i>orientation</i>. This value will be set on the <a href="qprinter.html">QPrinter</a> object associated with the preview.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#orientation">orientation</a>().</p>
<!-- @@@setOrientation -->
<!-- $$$setPortraitOrientation[overload1]$$$setPortraitOrientation -->
<h3 class="fn" id="setPortraitOrientation"><a name="setPortraitOrientation"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setPortraitOrientation</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setOrientation(QPrinter::Portrait)</code>.</p>
<!-- @@@setPortraitOrientation -->
<!-- $$$setSinglePageViewMode[overload1]$$$setSinglePageViewMode -->
<h3 class="fn" id="setSinglePageViewMode"><a name="setSinglePageViewMode"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setSinglePageViewMode</span>()</h3>
<p>This is a convenience function and is the same as calling <code>setViewMode(QPrintPreviewWidget::SinglePageView)</code>.</p>
<!-- @@@setSinglePageViewMode -->
<!-- $$$setViewMode[overload1]$$$setViewModeViewMode -->
<h3 class="fn" id="setViewMode"><a name="setViewMode"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setViewMode</span>(<span class="type"><a href="qprintpreviewwidget.html#ViewMode-enum">ViewMode</a></span> <i>mode</i>)</h3>
<p>Sets the view mode to <i>mode</i>. The default view mode is <a href="qprintpreviewwidget.html#ViewMode-enum">SinglePageView</a>.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#viewMode">viewMode</a>().</p>
<!-- @@@setViewMode -->
<!-- $$$setVisible[overload1]$$$setVisiblebool -->
<h3 class="fn" id="setVisible"><a name="setVisible"></a><code>[virtual] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setVisible</span>(<span class="type">bool</span> <i>visible</i>)</h3>
<p>Reimplemented from <a href="../qtwidgets/qwidget.html#visible-prop">QWidget::setVisible</a>().</p>
<!-- @@@setVisible -->
<!-- $$$setZoomFactor[overload1]$$$setZoomFactorqreal -->
<h3 class="fn" id="setZoomFactor"><a name="setZoomFactor"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setZoomFactor</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>factor</i>)</h3>
<p>Sets the zoom factor of the view to <i>factor</i>. 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.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#zoomFactor">zoomFactor</a>().</p>
<!-- @@@setZoomFactor -->
<!-- $$$setZoomMode[overload1]$$$setZoomModeZoomMode -->
<h3 class="fn" id="setZoomMode"><a name="setZoomMode"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">setZoomMode</span>(<span class="type"><a href="qprintpreviewwidget.html#ZoomMode-enum">ZoomMode</a></span> <i>zoomMode</i>)</h3>
<p>Sets the zoom mode to <i>zoomMode</i>. The default zoom mode is <a href="qprintpreviewwidget.html#ZoomMode-enum">FitInView</a>.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#zoomMode">zoomMode</a>(), <a href="qprintpreviewwidget.html#viewMode">viewMode</a>(), and <a href="qprintpreviewwidget.html#setViewMode">setViewMode</a>().</p>
<!-- @@@setZoomMode -->
<!-- $$$updatePreview[overload1]$$$updatePreview -->
<h3 class="fn" id="updatePreview"><a name="updatePreview"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">updatePreview</span>()</h3>
<p>This function updates the preview, which causes the <a href="qprintpreviewwidget.html#paintRequested">paintRequested</a>() signal to be emitted.</p>
<!-- @@@updatePreview -->
<!-- $$$viewMode[overload1]$$$viewMode -->
<h3 class="fn" id="viewMode"><a name="viewMode"></a><span class="type"><a href="qprintpreviewwidget.html#ViewMode-enum">ViewMode</a></span> QPrintPreviewWidget::<span class="name">viewMode</span>() const</h3>
<p>Returns the current view mode. The default view mode is <a href="qprintpreviewwidget.html#ViewMode-enum">SinglePageView</a>.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#setViewMode">setViewMode</a>().</p>
<!-- @@@viewMode -->
<!-- $$$zoomFactor[overload1]$$$zoomFactor -->
<h3 class="fn" id="zoomFactor"><a name="zoomFactor"></a><span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> QPrintPreviewWidget::<span class="name">zoomFactor</span>() const</h3>
<p>Returns the zoom factor of the view.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#setZoomFactor">setZoomFactor</a>().</p>
<!-- @@@zoomFactor -->
<!-- $$$zoomIn[overload1]$$$zoomInqreal -->
<h3 class="fn" id="zoomIn"><a name="zoomIn"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">zoomIn</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>factor</i> = 1.1)</h3>
<p>Zooms the current view in by <i>factor</i>. The default value for <i>factor</i> is 1.1, which means the view will be scaled up by 10%.</p>
<!-- @@@zoomIn -->
<!-- $$$zoomMode[overload1]$$$zoomMode -->
<h3 class="fn" id="zoomMode"><a name="zoomMode"></a><span class="type"><a href="qprintpreviewwidget.html#ZoomMode-enum">ZoomMode</a></span> QPrintPreviewWidget::<span class="name">zoomMode</span>() const</h3>
<p>Returns the current zoom mode.</p>
<p><b>See also </b><a href="qprintpreviewwidget.html#setZoomMode">setZoomMode</a>(), <a href="qprintpreviewwidget.html#viewMode">viewMode</a>(), and <a href="qprintpreviewwidget.html#setViewMode">setViewMode</a>().</p>
<!-- @@@zoomMode -->
<!-- $$$zoomOut[overload1]$$$zoomOutqreal -->
<h3 class="fn" id="zoomOut"><a name="zoomOut"></a><code>[slot] </code><span class="type">void</span> QPrintPreviewWidget::<span class="name">zoomOut</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>factor</i> = 1.1)</h3>
<p>Zooms the current view out by <i>factor</i>. The default value for <i>factor</i> is 1.1, which means the view will be scaled down by 10%.</p>
<!-- @@@zoomOut -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>