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:92 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QWidgetItem 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>QWidgetItem Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QWidgetItem class is a layout item that represents a widget.
|
---|
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="qwidgetitem-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn><a href="#QWidgetItem"><b>QWidgetItem</b></a> ( QWidget * w )</li>
|
---|
42 | <li class=fn>virtual QSize <a href="#sizeHint"><b>sizeHint</b></a> () const</li>
|
---|
43 | <li class=fn>virtual QSize <a href="#minimumSize"><b>minimumSize</b></a> () const</li>
|
---|
44 | <li class=fn>virtual QSize <a href="#maximumSize"><b>maximumSize</b></a> () const</li>
|
---|
45 | <li class=fn>virtual QSizePolicy::ExpandData <a href="#expanding"><b>expanding</b></a> () const</li>
|
---|
46 | <li class=fn>virtual bool <a href="#isEmpty"><b>isEmpty</b></a> () const</li>
|
---|
47 | <li class=fn>virtual void <a href="#setGeometry"><b>setGeometry</b></a> ( const QRect & r )</li>
|
---|
48 | <li class=fn>virtual QWidget * <a href="#widget"><b>widget</b></a> ()</li>
|
---|
49 | </ul>
|
---|
50 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
51 |
|
---|
52 |
|
---|
53 |
|
---|
54 |
|
---|
55 | The QWidgetItem class is a layout item that represents a widget.
|
---|
56 | <p> This is used by custom layouts.
|
---|
57 | <p> <p>See also <a href="qlayout.html">QLayout</a>, <a href="qlayoutitem.html#widget">QLayout::widget</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="QWidgetItem"></a>QWidgetItem::QWidgetItem ( <a href="qwidget.html">QWidget</a> * w )
|
---|
61 | </h3>
|
---|
62 |
|
---|
63 | <p> Creates an item containing widget <em>w</em>.
|
---|
64 |
|
---|
65 | <h3 class=fn><a href="qsizepolicy.html#ExpandData-enum">QSizePolicy::ExpandData</a> <a name="expanding"></a>QWidgetItem::expanding () const<tt> [virtual]</tt>
|
---|
66 | </h3>
|
---|
67 | Returns whether this item's widget can make use of more space than
|
---|
68 | <a href="#sizeHint">sizeHint</a>(). A value of <tt>Vertical</tt> or <tt>Horizontal</tt> means that it wants
|
---|
69 | to grow in only one dimension, whereas <tt>BothDirections</tt> means that
|
---|
70 | it wants to grow in both dimensions and <tt>NoDirection</tt> means that
|
---|
71 | it doesn't want to grow at all.
|
---|
72 |
|
---|
73 | <p>Reimplemented from <a href="qlayoutitem.html#expanding">QLayoutItem</a>.
|
---|
74 | <h3 class=fn>bool <a name="isEmpty"></a>QWidgetItem::isEmpty () const<tt> [virtual]</tt>
|
---|
75 | </h3>
|
---|
76 | Returns TRUE if the widget has been hidden; otherwise returns
|
---|
77 | FALSE.
|
---|
78 |
|
---|
79 | <p>Reimplemented from <a href="qlayoutitem.html#isEmpty">QLayoutItem</a>.
|
---|
80 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="maximumSize"></a>QWidgetItem::maximumSize () const<tt> [virtual]</tt>
|
---|
81 | </h3>
|
---|
82 | Returns the maximum size of this item.
|
---|
83 |
|
---|
84 | <p>Reimplemented from <a href="qlayoutitem.html#maximumSize">QLayoutItem</a>.
|
---|
85 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="minimumSize"></a>QWidgetItem::minimumSize () const<tt> [virtual]</tt>
|
---|
86 | </h3>
|
---|
87 | Returns the minimum size of this item.
|
---|
88 |
|
---|
89 | <p>Reimplemented from <a href="qlayoutitem.html#minimumSize">QLayoutItem</a>.
|
---|
90 | <h3 class=fn>void <a name="setGeometry"></a>QWidgetItem::setGeometry ( const <a href="qrect.html">QRect</a> & r )<tt> [virtual]</tt>
|
---|
91 | </h3>
|
---|
92 | Sets the geometry of this item's widget to be contained within
|
---|
93 | rect <em>r</em>, taking alignment and maximum size into account.
|
---|
94 |
|
---|
95 | <p>Reimplemented from <a href="qlayoutitem.html#setGeometry">QLayoutItem</a>.
|
---|
96 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="sizeHint"></a>QWidgetItem::sizeHint () const<tt> [virtual]</tt>
|
---|
97 | </h3>
|
---|
98 | Returns the preferred size of this item.
|
---|
99 |
|
---|
100 | <p>Reimplemented from <a href="qlayoutitem.html#sizeHint">QLayoutItem</a>.
|
---|
101 | <h3 class=fn><a href="qwidget.html">QWidget</a> * <a name="widget"></a>QWidgetItem::widget ()<tt> [virtual]</tt>
|
---|
102 | </h3>
|
---|
103 | Returns the widget managed by this item.
|
---|
104 |
|
---|
105 | <p>Reimplemented from <a href="qlayoutitem.html#widget">QLayoutItem</a>.
|
---|
106 | <!-- eof -->
|
---|
107 | <hr><p>
|
---|
108 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
109 | Copyright © 1995-2007
|
---|
110 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
111 | <table width=100% cellspacing=0 border=0><tr>
|
---|
112 | <td>Copyright © 2007
|
---|
113 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
114 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
115 | </table></div></address></body>
|
---|
116 | </html>
|
---|