1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/kernel/qabstractlayout.cpp:81 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QSpacerItem Class</title>
|
---|
7 | <style type="text/css"><!--
|
---|
8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
9 | a:link { color: #004faf; text-decoration: none }
|
---|
10 | a:visited { color: #672967; text-decoration: none }
|
---|
11 | body { background: #ffffff; color: black; }
|
---|
12 | --></style>
|
---|
13 | </head>
|
---|
14 | <body>
|
---|
15 |
|
---|
16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
17 | <tr bgcolor="#E5E5E5">
|
---|
18 | <td valign=center>
|
---|
19 | <a href="index.html">
|
---|
20 | <font color="#004faf">Home</font></a>
|
---|
21 | | <a href="classes.html">
|
---|
22 | <font color="#004faf">All Classes</font></a>
|
---|
23 | | <a href="mainclasses.html">
|
---|
24 | <font color="#004faf">Main Classes</font></a>
|
---|
25 | | <a href="annotated.html">
|
---|
26 | <font color="#004faf">Annotated</font></a>
|
---|
27 | | <a href="groups.html">
|
---|
28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
29 | | <a href="functions.html">
|
---|
30 | <font color="#004faf">Functions</font></a>
|
---|
31 | </td>
|
---|
32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QSpacerItem Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QSpacerItem class provides blank space in a layout.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qlayout-h.html">qlayout.h</a>></tt>
|
---|
37 | <p>Inherits <a href="qlayoutitem.html">QLayoutItem</a>.
|
---|
38 | <p><a href="qspaceritem-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn><a href="#QSpacerItem"><b>QSpacerItem</b></a> ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = QSizePolicy::Minimum )</li>
|
---|
42 | <li class=fn>void <a href="#changeSize"><b>changeSize</b></a> ( int w, int h, QSizePolicy::SizeType hData = QSizePolicy::Minimum, QSizePolicy::SizeType vData = QSizePolicy::Minimum )</li>
|
---|
43 | <li class=fn>virtual QSize <a href="#sizeHint"><b>sizeHint</b></a> () const</li>
|
---|
44 | <li class=fn>virtual QSize <a href="#minimumSize"><b>minimumSize</b></a> () const</li>
|
---|
45 | <li class=fn>virtual QSize <a href="#maximumSize"><b>maximumSize</b></a> () const</li>
|
---|
46 | <li class=fn>virtual QSizePolicy::ExpandData <a href="#expanding"><b>expanding</b></a> () const</li>
|
---|
47 | <li class=fn>virtual bool <a href="#isEmpty"><b>isEmpty</b></a> () const</li>
|
---|
48 | <li class=fn>virtual void <a href="#setGeometry"><b>setGeometry</b></a> ( const QRect & r )</li>
|
---|
49 | </ul>
|
---|
50 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
51 |
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 | The QSpacerItem class provides blank space in a layout.
|
---|
56 | <p> This class is used by custom layouts.
|
---|
57 | <p> <p>See also <a href="qlayout.html">QLayout</a>, <a href="qlayoutitem.html#spacerItem">QLayout::spacerItem</a>(), <a href="appearance.html">Widget Appearance and Style</a>, and <a href="geomanagement.html">Layout Management</a>.
|
---|
58 |
|
---|
59 | <hr><h2>Member Function Documentation</h2>
|
---|
60 | <h3 class=fn><a name="QSpacerItem"></a>QSpacerItem::QSpacerItem ( int w, int h, <a href="qsizepolicy.html#SizeType-enum">QSizePolicy::SizeType</a> hData = QSizePolicy::Minimum, <a href="qsizepolicy.html#SizeType-enum">QSizePolicy::SizeType</a> vData = QSizePolicy::Minimum )
|
---|
61 | </h3>
|
---|
62 |
|
---|
63 | <p> Constructs a spacer item with preferred width <em>w</em>, preferred
|
---|
64 | height <em>h</em>, horizontal size policy <em>hData</em> and vertical size
|
---|
65 | policy <em>vData</em>.
|
---|
66 | <p> The default values provide a gap that is able to stretch if
|
---|
67 | nothing else wants the space.
|
---|
68 |
|
---|
69 | <h3 class=fn>void <a name="changeSize"></a>QSpacerItem::changeSize ( int w, int h, <a href="qsizepolicy.html#SizeType-enum">QSizePolicy::SizeType</a> hData = QSizePolicy::Minimum, <a href="qsizepolicy.html#SizeType-enum">QSizePolicy::SizeType</a> vData = QSizePolicy::Minimum )
|
---|
70 | </h3>
|
---|
71 | Changes this spacer item to have preferred width <em>w</em>, preferred
|
---|
72 | height <em>h</em>, horizontal size policy <em>hData</em> and vertical size
|
---|
73 | policy <em>vData</em>.
|
---|
74 | <p> The default values provide a gap that is able to stretch if
|
---|
75 | nothing else wants the space.
|
---|
76 |
|
---|
77 | <h3 class=fn><a href="qsizepolicy.html#ExpandData-enum">QSizePolicy::ExpandData</a> <a name="expanding"></a>QSpacerItem::expanding () const<tt> [virtual]</tt>
|
---|
78 | </h3>
|
---|
79 | Returns the direction in which this spacer item will expand.
|
---|
80 | <p> <p>See also <a href="qsizepolicy.html#ExpandData-enum">QSizePolicy::ExpandData</a>.
|
---|
81 |
|
---|
82 | <p>Reimplemented from <a href="qlayoutitem.html#expanding">QLayoutItem</a>.
|
---|
83 | <h3 class=fn>bool <a name="isEmpty"></a>QSpacerItem::isEmpty () const<tt> [virtual]</tt>
|
---|
84 | </h3>
|
---|
85 | Returns TRUE because a spacer item never contains widgets.
|
---|
86 |
|
---|
87 | <p>Reimplemented from <a href="qlayoutitem.html#isEmpty">QLayoutItem</a>.
|
---|
88 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="maximumSize"></a>QSpacerItem::maximumSize () const<tt> [virtual]</tt>
|
---|
89 | </h3>
|
---|
90 | Returns the maximum size of this spacer item.
|
---|
91 |
|
---|
92 | <p>Reimplemented from <a href="qlayoutitem.html#maximumSize">QLayoutItem</a>.
|
---|
93 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="minimumSize"></a>QSpacerItem::minimumSize () const<tt> [virtual]</tt>
|
---|
94 | </h3>
|
---|
95 | Returns the minimum size of this spacer item.
|
---|
96 |
|
---|
97 | <p>Reimplemented from <a href="qlayoutitem.html#minimumSize">QLayoutItem</a>.
|
---|
98 | <h3 class=fn>void <a name="setGeometry"></a>QSpacerItem::setGeometry ( const <a href="qrect.html">QRect</a> & r )<tt> [virtual]</tt>
|
---|
99 | </h3>
|
---|
100 | Stores the spacer item's rect <em>r</em> so that it can be returned by
|
---|
101 | <a href="qlayoutitem.html#geometry">geometry</a>().
|
---|
102 |
|
---|
103 | <p>Reimplemented from <a href="qlayoutitem.html#setGeometry">QLayoutItem</a>.
|
---|
104 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="sizeHint"></a>QSpacerItem::sizeHint () const<tt> [virtual]</tt>
|
---|
105 | </h3>
|
---|
106 | Returns the preferred size of this spacer item.
|
---|
107 |
|
---|
108 | <p>Reimplemented from <a href="qlayoutitem.html#sizeHint">QLayoutItem</a>.
|
---|
109 | <!-- eof -->
|
---|
110 | <hr><p>
|
---|
111 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
112 | Copyright © 1995-2007
|
---|
113 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
114 | <table width=100% cellspacing=0 border=0><tr>
|
---|
115 | <td>Copyright © 2007
|
---|
116 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
117 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
118 | </table></div></address></body>
|
---|
119 | </html>
|
---|