1
<?xml version="1.0" encoding="UTF-8"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<!-- qabstractprintdialog.cpp -->
7
<title>Qt 4.7: Qt 3 Support Members for QPrintDialog</title>
8
<link rel="stylesheet" type="text/css" href="style/style.css" />
9
<script src="scripts/jquery.js" type="text/javascript"></script>
10
<script src="scripts/functions.js" type="text/javascript"></script>
12
<body class="offline narrow creator">
13
<div class="header" id="qtdocheader">
16
<a href="index.html">Home</a></div>
17
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
18
<div id="nav-topright">
20
<li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
21
<li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
22
<li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
23
<li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
25
<li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
30
<li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.7</a></span></li>
31
<li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS </a></li>
34
<ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu">
35
<li><a href="#">API Lookup</a>
37
<li><a href="classes.html">Class index</a></li>
38
<li><a href="functions.html">Function index</a></li>
39
<li><a href="modules.html">Modules</a></li>
40
<li><a href="namespaces.html">Namespaces</a></li>
41
<li><a href="qtglobal.html">Global Declarations</a></li>
42
<li><a href="licensing.html">Licenses and Credits</a></li>
45
<li><a href="#">Qt Topics</a>
46
<ul id="topmenuTopic">
47
<li><a href="qt-basic-concepts.html">Programming with Qt</a></li>
48
<li><a href="qtquick.html">Device UI's & Qt Quick</a></li>
49
<li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
50
<li><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
51
<li><a href="platform-specific.html">Platform-specific info</a></li>
52
<li><a href="technology-apis.html">Qt and Key Technologies</a></li>
53
<li><a href="best-practices.html">How-To's and Best Practices</a></li>
56
<li><a href="#">Examples</a>
57
<ul id="topmenuexample">
58
<li><a href="all-examples.html">Examples</a></li>
59
<li><a href="tutorials.html">Tutorials</a></li>
60
<li><a href="demos.html">Demos</a></li>
61
<li><a href="qdeclarativeexamples.html">QML Examples</a></li>
71
<div class="bd group">
73
<div class="searchlabel">
76
<form id="qtdocsearch" action="" onsubmit="return false;">
78
<input type="text" name="searchstring" id="pageType" value="" />
82
<div class="box first bottombar" id="lookup">
83
<h2 title="API Lookup"><span></span>
85
<div id="list001" class="list">
87
<li class="defaultLink"><a href="classes.html">Class index</a></li>
88
<li class="defaultLink"><a href="functions.html">Function index</a></li>
89
<li class="defaultLink"><a href="modules.html">Modules</a></li>
90
<li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
91
<li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
92
<li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
96
<div class="box bottombar" id="topics">
97
<h2 title="Qt Topics"><span></span>
99
<div id="list002" class="list">
101
<li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li>
102
<li class="defaultLink"><a href="qtquick.html">Device UI's & Qt Quick</a></li>
103
<li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li>
104
<li class="defaultLink"><a href="developing-with-qt.html">Cross-platform and Platform-specific</a></li>
105
<li class="defaultLink"><a href="platform-specific.html">Platform-specific info</a></li>
106
<li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li>
107
<li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li>
111
<div class="box" id="examples">
112
<h2 title="Examples"><span></span>
114
<div id="list003" class="list">
116
<li class="defaultLink"><a href="all-examples.html">Examples</a></li>
117
<li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
118
<li class="defaultLink"><a href="demos.html">Demos</a></li>
119
<li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
125
<div class="toolbar">
126
<div class="breadcrumb toolblock">
128
<li class="first"><a href="index.html">Home</a></li>
129
<!-- Bread crumbs goes here -->
130
<li><a href="modules.html">Modules</a></li> <li><a href="qtgui.html">QtGui</a></li>
131
<li>QPrintDialog</li>
134
<div class="toolbuttons toolblock">
136
<li id="smallA" class="t_button">A</li>
137
<li id="medA" class="t_button active">A</li>
138
<li id="bigA" class="t_button">A</li>
139
<li id="print" class="t_button"><a href="javascript:this.print();">
140
<span>Print</span></a></li>
144
<div class="content">
145
<h1 class="title">Qt 3 Support Members for QPrintDialog</h1>
146
<p><b>The following class members are part of the <a href="qt3support.html">Qt 3 support layer</a>.</b> They are provided to help you port old code to Qt 4. We advise against using them in new code.</p>
147
<p><ul><li><a href="qprintdialog.html">QPrintDialog class reference</a></li></ul></p>
148
<h2>Public Functions</h2>
149
<table class="alignedsummary">
150
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintdialog.html#addButton">addButton</a></b> ( QPushButton * <i>button</i> )</td></tr>
151
<tr><td class="memItemLeft topAlign rightAlign"> QPrinter * </td><td class="memItemRight bottomAlign"><b><a href="qprintdialog.html#printer-2">printer</a></b> () const</td></tr>
152
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qprintdialog.html#setPrinter">setPrinter</a></b> ( QPrinter * <i>printer</i>, bool <i>pickupSettings</i> = false )</td></tr>
155
<li class="fn">60 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
156
<li class="fn">8 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
157
<li class="fn">8 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
159
<h2>Member Function Documentation</h2>
160
<!-- $$$addButton[overload1]$$$addButtonQPushButton* -->
161
<h3 class="fn"><a name="addButton"></a>void QPrintDialog::addButton ( <a href="qpushbutton.html">QPushButton</a> * <i>button</i> )</h3>
162
<p>Adds the <i>button</i> to the layout of the print dialog. The added buttons are arranged from the left to the right below the last groupbox of the printdialog.</p>
163
<p>This function is available for Unix platforms only.</p>
164
<!-- @@@addButton -->
165
<!-- $$$printer$$$printer -->
166
<h3 class="fn"><a name="printer-2"></a><a href="qprinter.html">QPrinter</a> * QPrintDialog::printer () const</h3>
167
<p>Returns a pointer to the printer this dialog configures, or 0 if this dialog does not operate on any printer.</p>
168
<p>This function is available for Unix platforms only.</p>
170
<!-- $$$setPrinter[overload1]$$$setPrinterQPrinter*bool -->
171
<h3 class="fn"><a name="setPrinter"></a>void QPrintDialog::setPrinter ( <a href="qprinter.html">QPrinter</a> * <i>printer</i>, bool <i>pickupSettings</i> = false )</h3>
172
<p>Sets this dialog to configure printer <i>printer</i>, or no printer if <i>printer</i> is null. If <i>pickupSettings</i> is true, the dialog reads most of its settings from <i>printer</i>. If <i>pickupSettings</i> is false (the default) the dialog keeps its old settings.</p>
173
<p>This function is available for Unix platforms only.</p>
174
<p>See also <a href="qprintdialog.html#printer">printer</a>().</p>
175
<!-- @@@setPrinter -->
176
<div class="feedback t_button">
177
[+] Documentation Feedback</div>
187
<acronym title="Copyright">©</acronym> 2008-2010 Nokia Corporation and/or its
188
subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation
189
in Finland and/or other countries worldwide.</p>
191
All other trademarks are property of their respective owners. <a title="Privacy Policy"
192
href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
195
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.</p>
197
Alternatively, this document may be used under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU
198
Free Documentation License version 1.3</a>
199
as published by the Free Software Foundation.</p>
201
<div id="feedbackBox">
202
<div id="feedcloseX" class="feedclose t_button">X</div>
203
<form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
204
<p id="noteHead">Thank you for giving your feedback.</p> <p class="note">Make sure it is related to this specific page. For more general bugs and
205
requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p>
206
<p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
207
<p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>