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/widgets/qsplitter.cpp:220 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QSplitter 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>QSplitter Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QSplitter class implements a splitter widget.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qsplitter-h.html">qsplitter.h</a>></tt>
|
---|
37 | <p>Inherits <a href="qframe.html">QFrame</a>.
|
---|
38 | <p><a href="qsplitter-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn>enum <a href="#ResizeMode-enum"><b>ResizeMode</b></a> { Stretch, KeepSize, FollowSizeHint, Auto }</li>
|
---|
42 | <li class=fn><a href="#QSplitter"><b>QSplitter</b></a> ( QWidget * parent = 0, const char * name = 0 )</li>
|
---|
43 | <li class=fn><a href="#QSplitter-2"><b>QSplitter</b></a> ( Orientation o, QWidget * parent = 0, const char * name = 0 )</li>
|
---|
44 | <li class=fn><a href="#~QSplitter"><b>~QSplitter</b></a> ()</li>
|
---|
45 | <li class=fn>virtual void <a href="#setOrientation"><b>setOrientation</b></a> ( Orientation )</li>
|
---|
46 | <li class=fn>Orientation <a href="#orientation"><b>orientation</b></a> () const</li>
|
---|
47 | <li class=fn>void <a href="#setChildrenCollapsible"><b>setChildrenCollapsible</b></a> ( bool )</li>
|
---|
48 | <li class=fn>bool <a href="#childrenCollapsible"><b>childrenCollapsible</b></a> () const</li>
|
---|
49 | <li class=fn>void <a href="#setCollapsible"><b>setCollapsible</b></a> ( QWidget * w, bool collapse )</li>
|
---|
50 | <li class=fn>virtual void <a href="#setResizeMode"><b>setResizeMode</b></a> ( QWidget * w, ResizeMode mode )</li>
|
---|
51 | <li class=fn>virtual void <a href="#setOpaqueResize"><b>setOpaqueResize</b></a> ( bool = TRUE )</li>
|
---|
52 | <li class=fn>bool <a href="#opaqueResize"><b>opaqueResize</b></a> () const</li>
|
---|
53 | <li class=fn>void <a href="#moveToFirst"><b>moveToFirst</b></a> ( QWidget * w )</li>
|
---|
54 | <li class=fn>void <a href="#moveToLast"><b>moveToLast</b></a> ( QWidget * w )</li>
|
---|
55 | <li class=fn>void <a href="#refresh"><b>refresh</b></a> ()</li>
|
---|
56 | <li class=fn>QValueList<int> <a href="#sizes"><b>sizes</b></a> () const</li>
|
---|
57 | <li class=fn>void <a href="#setSizes"><b>setSizes</b></a> ( QValueList<int> list )</li>
|
---|
58 | <li class=fn>int <a href="#handleWidth"><b>handleWidth</b></a> () const</li>
|
---|
59 | <li class=fn>void <a href="#setHandleWidth"><b>setHandleWidth</b></a> ( int )</li>
|
---|
60 | </ul>
|
---|
61 | <h2>Properties</h2>
|
---|
62 | <ul>
|
---|
63 | <li class=fn>bool <a href="#childrenCollapsible-prop"><b>childrenCollapsible</b></a> - whether child widgets can be resized down to size 0 by the user</li>
|
---|
64 | <li class=fn>int <a href="#handleWidth-prop"><b>handleWidth</b></a> - the width of the splitter handle</li>
|
---|
65 | <li class=fn>bool <a href="#opaqueResize-prop"><b>opaqueResize</b></a> - whether resizing is opaque</li>
|
---|
66 | <li class=fn>Orientation <a href="#orientation-prop"><b>orientation</b></a> - the orientation of the splitter</li>
|
---|
67 | </ul>
|
---|
68 | <h2>Protected Members</h2>
|
---|
69 | <ul>
|
---|
70 | <li class=fn>virtual void <a href="#childEvent"><b>childEvent</b></a> ( QChildEvent * c )</li>
|
---|
71 | <li class=fn>int <a href="#idAfter"><b>idAfter</b></a> ( QWidget * w ) const</li>
|
---|
72 | <li class=fn>void <a href="#moveSplitter"><b>moveSplitter</b></a> ( QCOORD p, int id )</li>
|
---|
73 | <li class=fn>virtual void drawSplitter ( QPainter * p, QCOORD x, QCOORD y, QCOORD w, QCOORD h ) <em>(obsolete)</em></li>
|
---|
74 | <li class=fn>int <a href="#adjustPos"><b>adjustPos</b></a> ( int pos, int id )</li>
|
---|
75 | <li class=fn>virtual void <a href="#setRubberband"><b>setRubberband</b></a> ( int p )</li>
|
---|
76 | <li class=fn>void <a href="#getRange"><b>getRange</b></a> ( int id, int * min, int * max )</li>
|
---|
77 | </ul>
|
---|
78 | <h2>Related Functions</h2>
|
---|
79 | <ul>
|
---|
80 | <li class=fn>QTextStream & <a href="#operator-lt-lt"><b>operator<<</b></a> ( QTextStream & ts, const QSplitter & splitter )</li>
|
---|
81 | <li class=fn>QTextStream & <a href="#operator-gt-gt"><b>operator>></b></a> ( QTextStream & ts, QSplitter & splitter )</li>
|
---|
82 | </ul>
|
---|
83 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
84 |
|
---|
85 |
|
---|
86 | The QSplitter class implements a splitter widget.
|
---|
87 | <p>
|
---|
88 |
|
---|
89 | <p> A splitter lets the user control the size of child widgets by
|
---|
90 | dragging the boundary between the children. Any number of widgets
|
---|
91 | may be controlled by a single splitter.
|
---|
92 | <p> To show a <a href="qlistbox.html">QListBox</a>, a <a href="qlistview.html">QListView</a> and a <a href="qtextedit.html">QTextEdit</a> side by side:
|
---|
93 | <pre>
|
---|
94 | QSplitter *split = new QSplitter( parent );
|
---|
95 | <a href="qlistbox.html">QListBox</a> *lb = new <a href="qlistbox.html">QListBox</a>( split );
|
---|
96 | <a href="qlistview.html">QListView</a> *lv = new <a href="qlistview.html">QListView</a>( split );
|
---|
97 | <a href="qtextedit.html">QTextEdit</a> *ed = new <a href="qtextedit.html">QTextEdit</a>( split );
|
---|
98 | </pre>
|
---|
99 |
|
---|
100 | <p> QSplitter lays out its children horizontally (side by side); you
|
---|
101 | can use <a href="#setOrientation">setOrientation</a>(QSplitter::Vertical) to lay out the
|
---|
102 | children vertically.
|
---|
103 | <p> By default, all widgets can be as large or as small as the user
|
---|
104 | wishes, between the <a href="qwidget.html#minimumSizeHint">minimumSizeHint</a>() (or <a href="qwidget.html#minimumSize">minimumSize</a>())
|
---|
105 | and <a href="qwidget.html#maximumSize">maximumSize</a>() of the widgets. Use <a href="#setResizeMode">setResizeMode</a>() to
|
---|
106 | specify that a widget should keep its size when the splitter is
|
---|
107 | resized, or set the stretch component of the <a href="qwidget.html#sizePolicy-prop">sizePolicy</a>.
|
---|
108 | <p> Although QSplitter normally resizes the children only at the end
|
---|
109 | of a resize operation, if you call <a href="#setOpaqueResize">setOpaqueResize</a>(TRUE) the
|
---|
110 | widgets are resized as often as possible.
|
---|
111 | <p> The initial distribution of size between the widgets is determined
|
---|
112 | by the initial size of each widget. You can also use <a href="#setSizes">setSizes</a>() to
|
---|
113 | set the sizes of all the widgets. The function <a href="#sizes">sizes</a>() returns the
|
---|
114 | sizes set by the user.
|
---|
115 | <p> If you <a href="qwidget.html#hide">hide</a>() a child its space will be distributed among the
|
---|
116 | other children. It will be reinstated when you <a href="qwidget.html#show">show</a>() it again. It
|
---|
117 | is also possible to reorder the widgets within the splitter using
|
---|
118 | <a href="#moveToFirst">moveToFirst</a>() and <a href="#moveToLast">moveToLast</a>().
|
---|
119 | <p> <img src=qsplitter-m.png> <img src=qsplitter-w.png>
|
---|
120 | <p> <p>See also <a href="qtabbar.html">QTabBar</a> and <a href="organizers.html">Organizers</a>.
|
---|
121 |
|
---|
122 | <hr><h2>Member Type Documentation</h2>
|
---|
123 | <h3 class=fn><a name="ResizeMode-enum"></a>QSplitter::ResizeMode</h3>
|
---|
124 |
|
---|
125 | <p> This enum type describes how QSplitter will resize each of its
|
---|
126 | child widgets.
|
---|
127 | <ul>
|
---|
128 | <li><tt>QSplitter::Auto</tt> - The widget will be resized according to the stretch
|
---|
129 | factors set in its <a href="qwidget.html#sizePolicy">sizePolicy</a>().
|
---|
130 | <li><tt>QSplitter::Stretch</tt> - The widget will be resized when the splitter
|
---|
131 | itself is resized.
|
---|
132 | <li><tt>QSplitter::KeepSize</tt> - QSplitter will try to keep the widget's size
|
---|
133 | unchanged.
|
---|
134 | <li><tt>QSplitter::FollowSizeHint</tt> - QSplitter will resize the widget when the
|
---|
135 | widget's size hint changes.
|
---|
136 | </ul>
|
---|
137 | <hr><h2>Member Function Documentation</h2>
|
---|
138 | <h3 class=fn><a name="QSplitter"></a>QSplitter::QSplitter ( <a href="qwidget.html">QWidget</a> * parent = 0, const char * name = 0 )
|
---|
139 | </h3>
|
---|
140 | Constructs a horizontal splitter with the <em>parent</em> and <em>name</em>
|
---|
141 | arguments being passed on to the <a href="qframe.html">QFrame</a> constructor.
|
---|
142 |
|
---|
143 | <h3 class=fn><a name="QSplitter-2"></a>QSplitter::QSplitter ( <a href="qt.html#Orientation-enum">Orientation</a> o, <a href="qwidget.html">QWidget</a> * parent = 0, const char * name = 0 )
|
---|
144 | </h3>
|
---|
145 | Constructs a splitter with orientation <em>o</em> with the <em>parent</em> and
|
---|
146 | <em>name</em> arguments being passed on to the <a href="qframe.html">QFrame</a> constructor.
|
---|
147 |
|
---|
148 | <h3 class=fn><a name="~QSplitter"></a>QSplitter::~QSplitter ()
|
---|
149 | </h3>
|
---|
150 | Destroys the splitter and any children.
|
---|
151 |
|
---|
152 | <h3 class=fn>int <a name="adjustPos"></a>QSplitter::adjustPos ( int pos, int id )<tt> [protected]</tt>
|
---|
153 | </h3>
|
---|
154 | Returns the closest legal position to <em>pos</em> of the widget with ID
|
---|
155 | <em>id</em>.
|
---|
156 | <p> <p>See also <a href="#idAfter">idAfter</a>().
|
---|
157 |
|
---|
158 | <h3 class=fn>void <a name="childEvent"></a>QSplitter::childEvent ( <a href="qchildevent.html">QChildEvent</a> * c )<tt> [virtual protected]</tt>
|
---|
159 | </h3>
|
---|
160 | Tells the splitter that the child widget described by <em>c</em> has
|
---|
161 | been inserted or removed.
|
---|
162 |
|
---|
163 | <p>Reimplemented from <a href="qobject.html#childEvent">QObject</a>.
|
---|
164 | <h3 class=fn>bool <a name="childrenCollapsible"></a>QSplitter::childrenCollapsible () const
|
---|
165 | </h3><p>Returns TRUE if child widgets can be resized down to size 0 by the user; otherwise returns FALSE.
|
---|
166 | See the <a href="qsplitter.html#childrenCollapsible-prop">"childrenCollapsible"</a> property for details.
|
---|
167 | <h3 class=fn>void <a name="drawSplitter"></a>QSplitter::drawSplitter ( <a href="qpainter.html">QPainter</a> * p, QCOORD x, QCOORD y, QCOORD w, QCOORD h )<tt> [virtual protected]</tt>
|
---|
168 | </h3>
|
---|
169 | <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
|
---|
170 | <p> Draws the splitter handle in the rectangle described by <em>x</em>, <em>y</em>,
|
---|
171 | <em>w</em>, <em>h</em> using painter <em>p</em>.
|
---|
172 | <p>See also <a href="qstyle.html#drawPrimitive">QStyle::drawPrimitive</a>().
|
---|
173 |
|
---|
174 | <h3 class=fn>void <a name="getRange"></a>QSplitter::getRange ( int id, int * min, int * max )<tt> [protected]</tt>
|
---|
175 | </h3>
|
---|
176 | Returns the valid range of the splitter with ID <em>id</em> in <em>*min</em>
|
---|
177 | and <em>*max</em> if <em>min</em> and <em>max</em> are not 0.
|
---|
178 | <p> <p>See also <a href="#idAfter">idAfter</a>().
|
---|
179 |
|
---|
180 | <h3 class=fn>int <a name="handleWidth"></a>QSplitter::handleWidth () const
|
---|
181 | </h3><p>Returns the width of the splitter handle.
|
---|
182 | See the <a href="qsplitter.html#handleWidth-prop">"handleWidth"</a> property for details.
|
---|
183 | <h3 class=fn>int <a name="idAfter"></a>QSplitter::idAfter ( <a href="qwidget.html">QWidget</a> * w ) const<tt> [protected]</tt>
|
---|
184 | </h3>
|
---|
185 | Returns the ID of the widget to the right of or below the widget
|
---|
186 | <em>w</em>, or 0 if there is no such widget (i.e. it is either not in
|
---|
187 | this QSplitter or <em>w</em> is at the end).
|
---|
188 |
|
---|
189 | <h3 class=fn>void <a name="moveSplitter"></a>QSplitter::moveSplitter ( QCOORD p, int id )<tt> [protected]</tt>
|
---|
190 | </h3>
|
---|
191 | Moves the left/top edge of the splitter handle with ID <em>id</em> as
|
---|
192 | close as possible to position <em>p</em>, which is the distance from the
|
---|
193 | left (or top) edge of the widget.
|
---|
194 | <p> For Arabic, Hebrew and other right-to-left languages the layout is
|
---|
195 | reversed. <em>p</em> is then the distance from the right (or top) edge
|
---|
196 | of the widget.
|
---|
197 | <p> <p>See also <a href="#idAfter">idAfter</a>().
|
---|
198 |
|
---|
199 | <h3 class=fn>void <a name="moveToFirst"></a>QSplitter::moveToFirst ( <a href="qwidget.html">QWidget</a> * w )
|
---|
200 | </h3>
|
---|
201 | Moves widget <em>w</em> to the leftmost/top position.
|
---|
202 |
|
---|
203 | <p>Example: <a href="splitter-example.html#x1299">splitter/splitter.cpp</a>.
|
---|
204 | <h3 class=fn>void <a name="moveToLast"></a>QSplitter::moveToLast ( <a href="qwidget.html">QWidget</a> * w )
|
---|
205 | </h3>
|
---|
206 | Moves widget <em>w</em> to the rightmost/bottom position.
|
---|
207 |
|
---|
208 | <h3 class=fn>bool <a name="opaqueResize"></a>QSplitter::opaqueResize () const
|
---|
209 | </h3><p>Returns TRUE if resizing is opaque; otherwise returns FALSE.
|
---|
210 | See the <a href="qsplitter.html#opaqueResize-prop">"opaqueResize"</a> property for details.
|
---|
211 | <h3 class=fn><a href="qt.html#Orientation-enum">Orientation</a> <a name="orientation"></a>QSplitter::orientation () const
|
---|
212 | </h3><p>Returns the orientation of the splitter.
|
---|
213 | See the <a href="qsplitter.html#orientation-prop">"orientation"</a> property for details.
|
---|
214 | <h3 class=fn>void <a name="refresh"></a>QSplitter::refresh ()
|
---|
215 | </h3>
|
---|
216 |
|
---|
217 | <p> Updates the splitter's state. You should not need to call this
|
---|
218 | function.
|
---|
219 |
|
---|
220 | <h3 class=fn>void <a name="setChildrenCollapsible"></a>QSplitter::setChildrenCollapsible ( bool )
|
---|
221 | </h3><p>Sets whether child widgets can be resized down to size 0 by the user.
|
---|
222 | See the <a href="qsplitter.html#childrenCollapsible-prop">"childrenCollapsible"</a> property for details.
|
---|
223 | <h3 class=fn>void <a name="setCollapsible"></a>QSplitter::setCollapsible ( <a href="qwidget.html">QWidget</a> * w, bool collapse )
|
---|
224 | </h3>
|
---|
225 | Sets whether the child widget <em>w</em> is collapsible to <em>collapse</em>.
|
---|
226 | <p> By default, children are collapsible, meaning that the user can
|
---|
227 | resize them down to size 0, even if they have a non-zero
|
---|
228 | <a href="qwidget.html#minimumSize">minimumSize</a>() or <a href="qwidget.html#minimumSizeHint">minimumSizeHint</a>(). This behavior can be changed
|
---|
229 | on a per-widget basis by calling this function, or globally for
|
---|
230 | all the widgets in the splitter by setting the <a href="#childrenCollapsible-prop">childrenCollapsible</a> property.
|
---|
231 | <p> <p>See also <a href="#childrenCollapsible-prop">childrenCollapsible</a>.
|
---|
232 |
|
---|
233 | <h3 class=fn>void <a name="setHandleWidth"></a>QSplitter::setHandleWidth ( int )
|
---|
234 | </h3><p>Sets the width of the splitter handle.
|
---|
235 | See the <a href="qsplitter.html#handleWidth-prop">"handleWidth"</a> property for details.
|
---|
236 | <h3 class=fn>void <a name="setOpaqueResize"></a>QSplitter::setOpaqueResize ( bool = TRUE )<tt> [virtual]</tt>
|
---|
237 | </h3><p>Sets whether resizing is opaque.
|
---|
238 | See the <a href="qsplitter.html#opaqueResize-prop">"opaqueResize"</a> property for details.
|
---|
239 | <h3 class=fn>void <a name="setOrientation"></a>QSplitter::setOrientation ( <a href="qt.html#Orientation-enum">Orientation</a> )<tt> [virtual]</tt>
|
---|
240 | </h3><p>Sets the orientation of the splitter.
|
---|
241 | See the <a href="qsplitter.html#orientation-prop">"orientation"</a> property for details.
|
---|
242 | <h3 class=fn>void <a name="setResizeMode"></a>QSplitter::setResizeMode ( <a href="qwidget.html">QWidget</a> * w, <a href="qsplitter.html#ResizeMode-enum">ResizeMode</a> mode )<tt> [virtual]</tt>
|
---|
243 | </h3>
|
---|
244 | Sets resize mode of widget <em>w</em> to <em>mode</em>. (The default is <a href="#ResizeMode-enum">Auto</a>.)
|
---|
245 |
|
---|
246 | <p>Examples: <a href="fileiconview-example.html#x894">fileiconview/mainwindow.cpp</a>, <a href="listviews-example.html#x161">listviews/listviews.cpp</a>, and <a href="splitter-example.html#x1301">splitter/splitter.cpp</a>.
|
---|
247 | <h3 class=fn>void <a name="setRubberband"></a>QSplitter::setRubberband ( int p )<tt> [virtual protected]</tt>
|
---|
248 | </h3>
|
---|
249 | Displays a rubber band at position <em>p</em>. If <em>p</em> is negative, the
|
---|
250 | rubber band is removed.
|
---|
251 |
|
---|
252 | <h3 class=fn>void <a name="setSizes"></a>QSplitter::setSizes ( <a href="qvaluelist.html">QValueList</a><int> list )
|
---|
253 | </h3>
|
---|
254 | Sets the size parameters to the values given in the <em>list</em>. If
|
---|
255 | the splitter is horizontal, the values set the widths of each
|
---|
256 | widget going from left to right. If the splitter is vertical, the
|
---|
257 | values set the heights of each widget going from top to bottom.
|
---|
258 | Extra values in the <em>list</em> are ignored.
|
---|
259 | <p> If <em>list</em> contains too few values, the result is undefined but
|
---|
260 | the program will still be well-behaved.
|
---|
261 | <p> Note that the values in <em>list</em> should be the height/width that
|
---|
262 | the widgets should be resized to.
|
---|
263 | <p> <p>See also <a href="#sizes">sizes</a>().
|
---|
264 |
|
---|
265 | <h3 class=fn><a href="qvaluelist.html">QValueList</a><int> <a name="sizes"></a>QSplitter::sizes () const
|
---|
266 | </h3>
|
---|
267 | Returns a list of the size parameters of all the widgets in this
|
---|
268 | splitter.
|
---|
269 | <p> If the splitter's orientation is horizontal, the list is a list of
|
---|
270 | widget widths; if the orientation is vertical, the list is a list
|
---|
271 | of widget heights.
|
---|
272 | <p> Giving the values to another splitter's <a href="#setSizes">setSizes</a>() function will
|
---|
273 | produce a splitter with the same layout as this one.
|
---|
274 | <p> Note that if you want to iterate over the list, you should iterate
|
---|
275 | over a copy, e.g.
|
---|
276 | <pre>
|
---|
277 | <a href="qvaluelist.html">QValueList</a><int> list = mySplitter.sizes();
|
---|
278 | QValueList<int>::Iterator it = list.<a href="qvaluelist.html#begin">begin</a>();
|
---|
279 | while( it != list.<a href="qvaluelist.html#end">end</a>() ) {
|
---|
280 | myProcessing( *it );
|
---|
281 | ++it;
|
---|
282 | }
|
---|
283 | </pre>
|
---|
284 |
|
---|
285 | <p> <p>See also <a href="#setSizes">setSizes</a>().
|
---|
286 |
|
---|
287 | <hr><h2>Property Documentation</h2>
|
---|
288 | <h3 class=fn>bool <a name="childrenCollapsible-prop"></a>childrenCollapsible</h3>
|
---|
289 | <p>This property holds whether child widgets can be resized down to size 0 by the user.
|
---|
290 | <p>By default, children are collapsible. It is possible to enable
|
---|
291 | and disable the collapsing of individual children; see
|
---|
292 | <a href="#setCollapsible">setCollapsible</a>().
|
---|
293 |
|
---|
294 | <p>Set this property's value with <a href="#setChildrenCollapsible">setChildrenCollapsible</a>() and get this property's value with <a href="#childrenCollapsible">childrenCollapsible</a>().
|
---|
295 | <h3 class=fn>int <a name="handleWidth-prop"></a>handleWidth</h3>
|
---|
296 | <p>This property holds the width of the splitter handle.
|
---|
297 | <p>
|
---|
298 | <p>Set this property's value with <a href="#setHandleWidth">setHandleWidth</a>() and get this property's value with <a href="#handleWidth">handleWidth</a>().
|
---|
299 | <h3 class=fn>bool <a name="opaqueResize-prop"></a>opaqueResize</h3>
|
---|
300 | <p>This property holds whether resizing is opaque.
|
---|
301 | <p>Opaque resizing is off by default.
|
---|
302 |
|
---|
303 | <p>Set this property's value with <a href="#setOpaqueResize">setOpaqueResize</a>() and get this property's value with <a href="#opaqueResize">opaqueResize</a>().
|
---|
304 | <h3 class=fn><a href="qt.html#Orientation-enum">Orientation</a> <a name="orientation-prop"></a>orientation</h3>
|
---|
305 | <p>This property holds the orientation of the splitter.
|
---|
306 | <p>By default the orientation is horizontal (the widgets are side by
|
---|
307 | side). The possible orientations are <a href="qt.html#Orientation-enum">Horizontal</a> and
|
---|
308 | <a href="qt.html#Orientation-enum">Vertical</a>.
|
---|
309 |
|
---|
310 | <p>Set this property's value with <a href="#setOrientation">setOrientation</a>() and get this property's value with <a href="#orientation">orientation</a>().
|
---|
311 | <hr><h2>Related Functions</h2>
|
---|
312 | <h3 class=fn><a href="qtextstream.html">QTextStream</a> & <a name="operator-lt-lt"></a>operator<< ( <a href="qtextstream.html">QTextStream</a> & ts, const <a href="qsplitter.html">QSplitter</a> & splitter )
|
---|
313 | </h3>
|
---|
314 |
|
---|
315 | <p> Writes the sizes and the hidden state of the widgets in the
|
---|
316 | splitter <em>splitter</em> to the text stream <em>ts</em>.
|
---|
317 | <p> <p>See also <a href="#operator-gt-gt">operator>></a>(), <a href="#sizes">sizes</a>(), and <a href="qwidget.html#hidden-prop">QWidget::hidden</a>.
|
---|
318 |
|
---|
319 | <h3 class=fn><a href="qtextstream.html">QTextStream</a> & <a name="operator-gt-gt"></a>operator>> ( <a href="qtextstream.html">QTextStream</a> & ts, <a href="qsplitter.html">QSplitter</a> & splitter )
|
---|
320 | </h3>
|
---|
321 |
|
---|
322 | <p> Reads the sizes and the hidden state of the widgets in the
|
---|
323 | splitter <em>splitter</em> from the text stream <em>ts</em>. The sizes must
|
---|
324 | have been previously written by the <a href="#operator-lt-lt">operator<<</a>() function.
|
---|
325 | <p> <p>See also <a href="#operator-lt-lt">operator<<</a>(), <a href="#setSizes">setSizes</a>(), and <a href="qwidget.html#hide">QWidget::hide</a>().
|
---|
326 |
|
---|
327 | <!-- eof -->
|
---|
328 | <hr><p>
|
---|
329 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
330 | Copyright © 1995-2007
|
---|
331 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
332 | <table width=100% cellspacing=0 border=0><tr>
|
---|
333 | <td>Copyright © 2007
|
---|
334 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
335 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
336 | </table></div></address></body>
|
---|
337 | </html>
|
---|