Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 901

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QPageSetupDialog Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QPageSetupDialog Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QPageSetupDialog class provides a configuration dialog for
the page-related options on a printer. <a href="#details">More...</a></p>

<p>Inherits <a href="qdialog.html">QDialog</a>.</p><h3>Types</h3><ul><li><div class="fn" />enum <b><a href="qpagesetupdialog.html#PageSetupDialogOption-enum">PageSetupDialogOption</a></b> { DontUseSheet }</li><li><div class="fn" />class <b><a href="qpagesetupdialog-pagesetupdialogoptions.html">PageSetupDialogOptions</a></b></li></ul><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qpagesetupdialog.html#QPageSetupDialog">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#QPageSetupDialog-2">__init__</a></b> (<i>self</i>, QPrinter&#160;<i>printer</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#addEnabledOption">addEnabledOption</a></b> (<i>self</i>, PageSetupDialogOption&#160;<i>option</i>)</li><li><div class="fn" />PageSetupDialogOptions <b><a href="qpagesetupdialog.html#enabledOptions">enabledOptions</a></b> (<i>self</i>)</li><li><div class="fn" />int <b><a href="qpagesetupdialog.html#exec">exec_</a></b> (<i>self</i>)</li><li><div class="fn" />bool <b><a href="qpagesetupdialog.html#isOptionEnabled">isOptionEnabled</a></b> (<i>self</i>, PageSetupDialogOption&#160;<i>option</i>)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#open">open</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#open-2">open</a></b> (<i>self</i>, QObject&#160;<i>receiver</i>, SLOT()SLOT()&#160;<i>member</i>)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#open-3">open</a></b> (<i>self</i>, callable&#160;<i>receiver</i>)</li><li><div class="fn" />PageSetupDialogOptions <b><a href="qpagesetupdialog.html#options">options</a></b> (<i>self</i>)</li><li><div class="fn" />QPrinter <b><a href="qpagesetupdialog.html#printer">printer</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#setEnabledOptions">setEnabledOptions</a></b> (<i>self</i>, PageSetupDialogOptions&#160;<i>options</i>)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#setOption">setOption</a></b> (<i>self</i>, PageSetupDialogOption&#160;<i>option</i>, bool&#160;<i>on</i>&#160;=&#160;True)</li><li><div class="fn" /><b><a href="qpagesetupdialog.html#setOptions">setOptions</a></b> (<i>self</i>, PageSetupDialogOptions&#160;<i>options</i>)</li><li><div class="fn" />bool <b><a href="qpagesetupdialog.html#testOption">testOption</a></b> (<i>self</i>, PageSetupDialogOption&#160;<i>option</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QPageSetupDialog class provides a configuration dialog for
the page-related options on a printer.</p>
<p>On Windows and Mac OS X the page setup dialog is implemented
using the native page setup dialogs.</p>
<p>Note that on Windows and Mac OS X custom paper sizes won't be
reflected in the native page setup dialogs. Additionally, custom
page margins set on a <a href="qprinter.html">QPrinter</a> won't
show in the native Mac OS X page setup dialog.</p>
<p>In Symbian, there is no support for printing. Hence, this dialog
should not be used in Symbian.</p>
<hr /><h2>Type Documentation</h2><h3 class="fn"><a name="PageSetupDialogOption-enum" />QPageSetupDialog.PageSetupDialogOption</h3><p>Used to specify options to the page setup dialog</p>
<p>This value is obsolete and does nothing since Qt 4.5:</p>
<table class="valuelist">
<tr class="odd" valign="top">
<th class="tblConst">Constant</th>
<th class="tblval">Value</th>
<th class="tbldscr">Description</th>
</tr>
<tr>
<td class="topAlign"><tt>QPageSetupDialog.DontUseSheet</tt></td>
<td class="topAlign"><tt>0x00000001</tt></td>
<td class="topAlign">In previous versions of <a href="qdialog.html#exec">QDialog.exec</a>() the page setup dialog would
create a sheet by default if the dialog was given a parent. This is
no longer supported from Qt 4.5. If you want to use sheets, use
<a href="qpagesetupdialog.html#open">QPageSetupDialog.open</a>()
instead.</td>
</tr>
</table>
<p>This enum was introduced or modified in Qt 4.4.</p>
<p>The PageSetupDialogOptions type is a typedef for <a href="qflags.html">QFlags</a>&lt;PageSetupDialogOption&gt;. It stores an
OR combination of PageSetupDialogOption values.</p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QPageSetupDialog" />QPageSetupDialog.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a page setup dialog that configures <i>printer</i>
with <i>parent</i> as the parent widget.</p>


<h3 class="fn"><a name="QPageSetupDialog-2" />QPageSetupDialog.__init__ (<i>self</i>, <a href="qprinter.html">QPrinter</a>&#160;<i>printer</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a page setup dialog that configures a
default-constructed <a href="qprinter.html">QPrinter</a> with
<i>parent</i> as the parent widget.</p>
<p>This function was introduced in Qt 4.5.</p>
<p><b>See also</b> <a href="qpagesetupdialog.html#printer">printer</a>().</p>


<h3 class="fn"><a name="addEnabledOption" />QPageSetupDialog.addEnabledOption (<i>self</i>, <a href="qpagesetupdialog.html#PageSetupDialogOption-enum">PageSetupDialogOption</a>&#160;<i>option</i>)</h3><h3 class="fn"><a name="enabledOptions" /><a href="qpagesetupdialog-pagesetupdialogoptions.html">PageSetupDialogOptions</a> QPageSetupDialog.enabledOptions (<i>self</i>)</h3><h3 class="fn"><a name="exec" />int QPageSetupDialog.exec_ (<i>self</i>)</h3><h3 class="fn"><a name="isOptionEnabled" />bool QPageSetupDialog.isOptionEnabled (<i>self</i>, <a href="qpagesetupdialog.html#PageSetupDialogOption-enum">PageSetupDialogOption</a>&#160;<i>option</i>)</h3><h3 class="fn"><a name="open" />QPageSetupDialog.open (<i>self</i>)</h3><p>This is an overloaded function.</p>
<p>Opens the dialog and connects its <a href="qdialog.html#accepted">accepted</a>() signal to the slot specified
by <i>receiver</i> and <i>member</i>.</p>
<p>The signal will be disconnected from the slot when the dialog is
closed.</p>
<p>This function was introduced in Qt 4.5.</p>


<h3 class="fn"><a name="open-2" />QPageSetupDialog.open (<i>self</i>, <a href="qobject.html">QObject</a>&#160;<i>receiver</i>, SLOT()SLOT()&#160;<i>member</i>)</h3><h3 class="fn"><a name="open-3" />QPageSetupDialog.open (<i>self</i>, callable&#160;<i>receiver</i>)</h3><h3 class="fn"><a name="options" /><a href="qpagesetupdialog-pagesetupdialogoptions.html">PageSetupDialogOptions</a> QPageSetupDialog.options (<i>self</i>)</h3><h3 class="fn"><a name="printer" /><a href="qprinter.html">QPrinter</a> QPageSetupDialog.printer (<i>self</i>)</h3><p>Returns the printer that was passed to the <a href="qpagesetupdialog.html">QPageSetupDialog</a> constructor.</p>


<h3 class="fn"><a name="setEnabledOptions" />QPageSetupDialog.setEnabledOptions (<i>self</i>, <a href="qpagesetupdialog-pagesetupdialogoptions.html">PageSetupDialogOptions</a>&#160;<i>options</i>)</h3><h3 class="fn"><a name="setOption" />QPageSetupDialog.setOption (<i>self</i>, <a href="qpagesetupdialog.html#PageSetupDialogOption-enum">PageSetupDialogOption</a>&#160;<i>option</i>, bool&#160;<i>on</i>&#160;=&#160;True)</h3><p>Sets the given <i>option</i> to be enabled if <i>on</i> is true;
otherwise, clears the given <i>option</i>.</p>
<p><b>See also</b> <a href="qpagesetupdialog.html#options-prop">options</a> and <a href="qpagesetupdialog.html#testOption">testOption</a>().</p>


<h3 class="fn"><a name="setOptions" />QPageSetupDialog.setOptions (<i>self</i>, <a href="qpagesetupdialog-pagesetupdialogoptions.html">PageSetupDialogOptions</a>&#160;<i>options</i>)</h3><h3 class="fn"><a name="testOption" />bool QPageSetupDialog.testOption (<i>self</i>, <a href="qpagesetupdialog.html#PageSetupDialogOption-enum">PageSetupDialogOption</a>&#160;<i>option</i>)</h3><p>Returns true if the given <i>option</i> is enabled; otherwise,
returns false.</p>
<p><b>See also</b> <a href="qpagesetupdialog.html#options-prop">options</a> and <a href="qpagesetupdialog.html#setOption">setOption</a>().</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>