Sophie

Sophie

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

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" />
<!-- qprinter.cpp -->
  <title>Obsolete Members for QPrinter | 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 >QPrinter</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="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">Obsolete Members for QPrinter</h1>
<p><b>The following members of class <a href="qprinter.html">QPrinter</a> are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p>
<h2>Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>int </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#actualNumCopies">actualNumCopies</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>bool </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#doubleSidedPrinting">doubleSidedPrinting</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#getPageMargins">getPageMargins</a></b>(qreal *<i>left</i>, qreal *<i>top</i>, qreal *<i>right</i>, qreal *<i>bottom</i>, Unit <i>unit</i>) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>int </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#numCopies">numCopies</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>Orientation </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#orientation">orientation</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QRect </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#pageRect-1">pageRect</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>PageSize </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#pageSize">pageSize</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QString </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#paperName">paperName</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QRect </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#paperRect-1">paperRect</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>PaperSize </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#paperSize">paperSize</a></b>() const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>QSizeF </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#paperSize-1">paperSize</a></b>(Unit <i>unit</i>) const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setDoubleSidedPrinting">setDoubleSidedPrinting</a></b>(bool <i>doubleSided</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>virtual void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setMargins">setMargins</a></b>(const Margins &amp;<i>m</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setNumCopies">setNumCopies</a></b>(int <i>numCopies</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setOrientation">setOrientation</a></b>(Orientation <i>orientation</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setPageMargins-2">setPageMargins</a></b>(qreal <i>left</i>, qreal <i>top</i>, qreal <i>right</i>, qreal <i>bottom</i>, Unit <i>unit</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>virtual void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setPageSize-1">setPageSize</a></b>(PageSize <i>newPageSize</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>virtual void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setPageSizeMM">setPageSizeMM</a></b>(const QSizeF &amp;<i>size</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setPaperName">setPaperName</a></b>(const QString &amp;<i>paperName</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setPaperSize">setPaperSize</a></b>(PaperSize <i>newPaperSize</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setPaperSize-1">setPaperSize</a></b>(const QSizeF &amp;<i>paperSize</i>, Unit <i>unit</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>void </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#setWinPageSize">setWinPageSize</a></b>(int <i>pageSize</i>)</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> <code>(obsolete) </code>int </td><td class="memItemRight bottomAlign"><b><a href="qprinter-obsolete.html#winPageSize">winPageSize</a></b>() const</td></tr>
</table></div>
<h2>Member Function Documentation</h2>
<!-- $$$actualNumCopies[overload1]$$$actualNumCopies -->
<h3 class="fn" id="actualNumCopies"><a name="actualNumCopies"></a><span class="type">int</span> QPrinter::<span class="name">actualNumCopies</span>() const</h3>
<p>Returns the number of copies that will be printed. The default value is 1.</p>
<p>This function always returns the actual value specified in the print dialog or using <a href="qprinter-obsolete.html#setNumCopies">setNumCopies</a>().</p>
<p>Use <a href="qprinter.html#copyCount">copyCount</a>() instead.</p>
<p>This function was introduced in  Qt 4.6.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setNumCopies">setNumCopies</a>() and <a href="qprinter-obsolete.html#numCopies">numCopies</a>().</p>
<!-- @@@actualNumCopies -->
<!-- $$$doubleSidedPrinting[overload1]$$$doubleSidedPrinting -->
<h3 class="fn" id="doubleSidedPrinting"><a name="doubleSidedPrinting"></a><span class="type">bool</span> QPrinter::<span class="name">doubleSidedPrinting</span>() const</h3>
<p>Returns <code>true</code> if double side printing is enabled.</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setDoubleSidedPrinting">setDoubleSidedPrinting</a>() and <a href="qprinter.html#duplex">duplex</a>().</p>
<!-- @@@doubleSidedPrinting -->
<!-- $$$getPageMargins[overload1]$$$getPageMarginsqreal*qreal*qreal*qreal*Unit -->
<h3 class="fn" id="getPageMargins"><a name="getPageMargins"></a><span class="type">void</span> QPrinter::<span class="name">getPageMargins</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> *<i>left</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> *<i>top</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> *<i>right</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> *<i>bottom</i>, <span class="type"><a href="qprinter.html#Unit-enum">Unit</a></span> <i>unit</i>) const</h3>
<p>Returns the page margins for this printer in <i>left</i>, <i>top</i>, <i>right</i>, <i>bottom</i>. The unit of the returned margins are specified with the <i>unit</i> parameter.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qprinter.html#pageLayout">pageLayout</a>() and <a href="qprinter.html#setPageMargins">setPageMargins</a>().</p>
<!-- @@@getPageMargins -->
<!-- $$$numCopies[overload1]$$$numCopies -->
<h3 class="fn" id="numCopies"><a name="numCopies"></a><span class="type">int</span> QPrinter::<span class="name">numCopies</span>() const</h3>
<p>Returns the number of copies to be printed. The default value is 1.</p>
<p>On Windows, macOS and X11 systems that support CUPS, this will always return 1 as these operating systems can internally handle the number of copies.</p>
<p>On X11, this value will return the number of times the application is required to print in order to match the number specified in the printer setup dialog. This has been done since some printer drivers are not capable of buffering up the copies and in those cases the application must make an explicit call to the print code for each copy.</p>
<p>Use <a href="qprinter.html#copyCount">copyCount</a>() in conjunction with <a href="qprinter.html#supportsMultipleCopies">supportsMultipleCopies</a>() instead.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setNumCopies">setNumCopies</a>() and <a href="qprinter-obsolete.html#actualNumCopies">actualNumCopies</a>().</p>
<!-- @@@numCopies -->
<!-- $$$orientation[overload1]$$$orientation -->
<h3 class="fn" id="orientation"><a name="orientation"></a><span class="type"><a href="qprinter.html#Orientation-enum">Orientation</a></span> QPrinter::<span class="name">orientation</span>() const</h3>
<p>Returns the orientation setting. This is driver-dependent, but is usually <a href="qprinter.html#Orientation-enum">QPrinter::Portrait</a>.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setOrientation">setOrientation</a>() and <a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@orientation -->
<!-- $$$pageRect$$$pageRect -->
<h3 class="fn" id="pageRect-1"><a name="pageRect-1"></a><span class="type"><a href="../qtcore/qrect.html">QRect</a></span> QPrinter::<span class="name">pageRect</span>() const</h3>
<p>Returns the page's rectangle; this is usually smaller than the <a href="qprinter-obsolete.html#paperRect-1">paperRect</a>() since the page normally has margins between its borders and the paper.</p>
<p>The unit of the returned rectangle is <a href="qprinter.html#Unit-enum">DevicePixel</a>.</p>
<p><b>See also </b><a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@pageRect -->
<!-- $$$pageSize[overload1]$$$pageSize -->
<h3 class="fn" id="pageSize"><a name="pageSize"></a><span class="type"><a href="../qtgui/qpagedpaintdevice.html#PageSize-enum">PageSize</a></span> QPrinter::<span class="name">pageSize</span>() const</h3>
<p>Returns the printer page size. The default value is driver-dependent.</p>
<p><b>See also </b><a href="qprinter.html#setPageSize">setPageSize</a>() and <a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@pageSize -->
<!-- $$$paperName[overload1]$$$paperName -->
<h3 class="fn" id="paperName"><a name="paperName"></a><span class="type"><a href="../qtcore/qstring.html">QString</a></span> QPrinter::<span class="name">paperName</span>() const</h3>
<p>Returns the paper name of the paper set on the printer.</p>
<p>The default value for this is driver-dependent.</p>
<p>This function was introduced in  Qt 5.1.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setPaperName">setPaperName</a>() and <a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@paperName -->
<!-- $$$paperRect$$$paperRect -->
<h3 class="fn" id="paperRect-1"><a name="paperRect-1"></a><span class="type"><a href="../qtcore/qrect.html">QRect</a></span> QPrinter::<span class="name">paperRect</span>() const</h3>
<p>Returns the paper's rectangle; this is usually larger than the <a href="qprinter-obsolete.html#pageRect-1">pageRect</a>().</p>
<p>The unit of the returned rectangle is <a href="qprinter.html#Unit-enum">DevicePixel</a>.</p>
<p><b>See also </b><a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@paperRect -->
<!-- $$$paperSize[overload1]$$$paperSize -->
<h3 class="fn" id="paperSize"><a name="paperSize"></a><span class="type"><a href="qprinter.html#PaperSize-typedef">PaperSize</a></span> QPrinter::<span class="name">paperSize</span>() const</h3>
<p>Returns the printer paper size. The default value is driver-dependent.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setPaperSize">setPaperSize</a>() and <a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@paperSize -->
<!-- $$$paperSize$$$paperSizeUnit -->
<h3 class="fn" id="paperSize-1"><a name="paperSize-1"></a><span class="type"><a href="../qtcore/qsizef.html">QSizeF</a></span> QPrinter::<span class="name">paperSize</span>(<span class="type"><a href="qprinter.html#Unit-enum">Unit</a></span> <i>unit</i>) const</h3>
<p><a href="qprinter.html#pageLayout">pageLayout</a>().fullPageSize() instead.</p>
<p>Returns the paper size in <i>unit</i>.</p>
<p>Note that the returned size reflects the current paper orientation.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@paperSize -->
<!-- $$$setDoubleSidedPrinting[overload1]$$$setDoubleSidedPrintingbool -->
<h3 class="fn" id="setDoubleSidedPrinting"><a name="setDoubleSidedPrinting"></a><span class="type">void</span> QPrinter::<span class="name">setDoubleSidedPrinting</span>(<span class="type">bool</span> <i>doubleSided</i>)</h3>
<p>Enables double sided printing if <i>doubleSided</i> is true; otherwise disables it.</p>
<p>This function was introduced in  Qt 4.2.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#doubleSidedPrinting">doubleSidedPrinting</a>() and <a href="qprinter.html#setDuplex">setDuplex</a>().</p>
<!-- @@@setDoubleSidedPrinting -->
<!-- $$$setMargins[overload1]$$$setMarginsconstMargins& -->
<h3 class="fn" id="setMargins"><a name="setMargins"></a><code>[virtual] </code><span class="type">void</span> QPrinter::<span class="name">setMargins</span>(const <span class="type"><a href="../qtgui/qpagedpaintdevice-margins.html">Margins</a></span> &amp;<i>m</i>)</h3>
<p>Reimplemented from <a href="../qtgui/qpagedpaintdevice.html#setMargins">QPagedPaintDevice::setMargins</a>().</p>
<p><b>See also </b><a href="qprinter.html#setPageMargins">setPageMargins</a>().</p>
<!-- @@@setMargins -->
<!-- $$$setNumCopies[overload1]$$$setNumCopiesint -->
<h3 class="fn" id="setNumCopies"><a name="setNumCopies"></a><span class="type">void</span> QPrinter::<span class="name">setNumCopies</span>(<span class="type">int</span> <i>numCopies</i>)</h3>
<p>Sets the number of copies to be printed to <i>numCopies</i>.</p>
<p>The printer driver reads this setting and prints the specified number of copies.</p>
<p>Use <a href="qprinter.html#setCopyCount">setCopyCount</a>() instead.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#numCopies">numCopies</a>().</p>
<!-- @@@setNumCopies -->
<!-- $$$setOrientation[overload1]$$$setOrientationOrientation -->
<h3 class="fn" id="setOrientation"><a name="setOrientation"></a><span class="type">void</span> QPrinter::<span class="name">setOrientation</span>(<span class="type"><a href="qprinter.html#Orientation-enum">Orientation</a></span> <i>orientation</i>)</h3>
<p>Sets the print orientation to <i>orientation</i>.</p>
<p>The orientation can be either <a href="qprinter.html#Orientation-enum">QPrinter::Portrait</a> or <a href="qprinter.html#Orientation-enum">QPrinter::Landscape</a>.</p>
<p>The printer driver reads this setting and prints using the specified orientation.</p>
<p>On Windows and Mac, this option can be changed while printing and will take effect from the next call to <a href="qprinter.html#newPage">newPage</a>().</p>
<p><b>See also </b><a href="qprinter-obsolete.html#orientation">orientation</a>() and <a href="qprinter.html#setPageOrientation">setPageOrientation</a>().</p>
<!-- @@@setOrientation -->
<!-- $$$setPageMargins$$$setPageMarginsqrealqrealqrealqrealUnit -->
<h3 class="fn" id="setPageMargins-2"><a name="setPageMargins-2"></a><span class="type">void</span> QPrinter::<span class="name">setPageMargins</span>(<span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>left</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>top</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>right</i>, <span class="type"><a href="../qtcore/qtglobal.html#qreal-typedef">qreal</a></span> <i>bottom</i>, <span class="type"><a href="qprinter.html#Unit-enum">Unit</a></span> <i>unit</i>)</h3>
<p>This function sets the <i>left</i>, <i>top</i>, <i>right</i> and <i>bottom</i> page margins for this printer. The unit of the margins are specified with the <i>unit</i> parameter.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qprinter.html#setPageMargins">setPageMargins</a>().</p>
<!-- @@@setPageMargins -->
<!-- $$$setPageSize$$$setPageSizePageSize -->
<h3 class="fn" id="setPageSize-1"><a name="setPageSize-1"></a><code>[virtual] </code><span class="type">void</span> QPrinter::<span class="name">setPageSize</span>(<span class="type"><a href="../qtgui/qpagedpaintdevice.html#PageSize-enum">PageSize</a></span> <i>newPageSize</i>)</h3>
<p>Reimplemented from <a href="../qtgui/qpagedpaintdevice.html#setPageSize-1">QPagedPaintDevice::setPageSize</a>().</p>
<p>Sets the printer page size based on <i>newPageSize</i>.</p>
<p><b>See also </b><a href="qprinter.html#setPageSize">setPageSize</a>().</p>
<!-- @@@setPageSize -->
<!-- $$$setPageSizeMM[overload1]$$$setPageSizeMMconstQSizeF& -->
<h3 class="fn" id="setPageSizeMM"><a name="setPageSizeMM"></a><code>[virtual] </code><span class="type">void</span> QPrinter::<span class="name">setPageSizeMM</span>(const <span class="type"><a href="../qtcore/qsizef.html">QSizeF</a></span> &amp;<i>size</i>)</h3>
<p>Reimplemented from <a href="../qtgui/qpagedpaintdevice.html#setPageSizeMM">QPagedPaintDevice::setPageSizeMM</a>().</p>
<p>Use <a href="qprinter.html#setPageSize">setPageSize</a>(<a href="../qtgui/qpagesize.html">QPageSize</a>) instead.</p>
<p>Note that the page size is defined in a portrait layout, regardless of what the current printer orientation is set to.</p>
<p><b>See also </b><a href="qprinter.html#setPageSize">setPageSize</a>().</p>
<!-- @@@setPageSizeMM -->
<!-- $$$setPaperName[overload1]$$$setPaperNameconstQString& -->
<h3 class="fn" id="setPaperName"><a name="setPaperName"></a><span class="type">void</span> QPrinter::<span class="name">setPaperName</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>paperName</i>)</h3>
<p>Sets the paper used by the printer to <i>paperName</i>.</p>
<p>This function was introduced in  Qt 5.1.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#paperName">paperName</a>() and <a href="qprinter.html#setPageSize">setPageSize</a>().</p>
<!-- @@@setPaperName -->
<!-- $$$setPaperSize[overload1]$$$setPaperSizePaperSize -->
<h3 class="fn" id="setPaperSize"><a name="setPaperSize"></a><span class="type">void</span> QPrinter::<span class="name">setPaperSize</span>(<span class="type"><a href="qprinter.html#PaperSize-typedef">PaperSize</a></span> <i>newPaperSize</i>)</h3>
<p>Sets the printer paper size to <i>newPaperSize</i> if that size is supported. The result is undefined if <i>newPaperSize</i> is not supported.</p>
<p>The default paper size is driver-dependent.</p>
<p>This function is useful mostly for setting a default value that the user can override in the print dialog.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#paperSize">paperSize</a>() and <a href="qprinter.html#setPageSize">setPageSize</a>().</p>
<!-- @@@setPaperSize -->
<!-- $$$setPaperSize$$$setPaperSizeconstQSizeF&Unit -->
<h3 class="fn" id="setPaperSize-1"><a name="setPaperSize-1"></a><span class="type">void</span> QPrinter::<span class="name">setPaperSize</span>(const <span class="type"><a href="../qtcore/qsizef.html">QSizeF</a></span> &amp;<i>paperSize</i>, <span class="type"><a href="qprinter.html#Unit-enum">Unit</a></span> <i>unit</i>)</h3>
<p>Sets the paper size based on <i>paperSize</i> in <i>unit</i>.</p>
<p>Note that the paper size is defined in a portrait layout, regardless of what the current printer orientation is set to.</p>
<p>This function was introduced in  Qt 4.4.</p>
<p><b>See also </b><a href="qprinter.html#setPageSize">setPageSize</a>().</p>
<!-- @@@setPaperSize -->
<!-- $$$setWinPageSize[overload1]$$$setWinPageSizeint -->
<h3 class="fn" id="setWinPageSize"><a name="setWinPageSize"></a><span class="type">void</span> QPrinter::<span class="name">setWinPageSize</span>(<span class="type">int</span> <i>pageSize</i>)</h3>
<p>Sets the page size to be used by the printer under Windows to <i>pageSize</i>.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#winPageSize">winPageSize</a>() and <a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@setWinPageSize -->
<!-- $$$winPageSize[overload1]$$$winPageSize -->
<h3 class="fn" id="winPageSize"><a name="winPageSize"></a><span class="type">int</span> QPrinter::<span class="name">winPageSize</span>() const</h3>
<p>Returns the page size used by the printer under Windows.</p>
<p><b>See also </b><a href="qprinter-obsolete.html#setWinPageSize">setWinPageSize</a>() and <a href="qprinter.html#pageLayout">pageLayout</a>().</p>
<!-- @@@winPageSize -->
        </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>