1
<?xml version="1.0" encoding="iso-8859-1"?>
3
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/widgets/qsplitter.cpp -->
7
<title>Qt 4.0: QSplitterHandle Class Reference</title>
8
<style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
9
a:link { color: #004faf; text-decoration: none }
10
a:visited { color: #672967; text-decoration: none }
11
td.postheader { font-family: sans-serif }
12
tr.address { font-family: sans-serif }
13
body { background: #ffffff; color: black; }</style>
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
19
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a> · <a href="classes.html"><font color="#004faf">All Classes</font></a> · <a href="mainclasses.html"><font color="#004faf">Main Classes</font></a> · <a href="annotated.html"><font color="#004faf">Annotated</font></a> · <a href="groups.html"><font color="#004faf">Grouped Classes</font></a> · <a href="functions.html"><font color="#004faf">Functions</font></a></td>
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QSplitterHandle Class Reference</h1>
21
<p>The QSplitterHandle class provides handle functionality of the splitter. <a href="#details">More...</a></p>
22
<pre>#include <QSplitterHandle></pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
23
<p>Inherits <a href="qwidget.html">QWidget</a>.</p>
25
<li><a href="qsplitterhandle-members.html">List of all members, including inherited members</a></li>
27
<a name="public-functions"></a>
28
<h3>Public Functions</h3>
30
<li><div class="fn"/><b><a href="qsplitterhandle.html#QSplitterHandle">QSplitterHandle</a></b> ( Qt::Orientation <i>orientation</i>, QSplitter * <i>parent</i> )</li>
31
<li><div class="fn"/>bool <b><a href="qsplitterhandle.html#opaqueResize">opaqueResize</a></b> () const</li>
32
<li><div class="fn"/>Qt::Orientation <b><a href="qsplitterhandle.html#orientation">orientation</a></b> () const</li>
33
<li><div class="fn"/>void <b><a href="qsplitterhandle.html#setOrientation">setOrientation</a></b> ( Qt::Orientation <i>orientation</i> )</li>
34
<li><div class="fn"/>QSplitter * <b><a href="qsplitterhandle.html#splitter">splitter</a></b> () const</li>
37
<li><div class="fn"/>183 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
38
<li><div class="fn"/>28 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
39
<li><div class="fn"/>10 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
41
<a name="protected-functions"></a>
42
<h3>Protected Functions</h3>
44
<li><div class="fn"/>int <b><a href="qsplitterhandle.html#closestLegalPosition">closestLegalPosition</a></b> ( int <i>pos</i> )</li>
45
<li><div class="fn"/>void <b><a href="qsplitterhandle.html#moveSplitter">moveSplitter</a></b> ( int <i>pos</i> )</li>
48
<li><div class="fn"/>39 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
49
<li><div class="fn"/>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
51
<h3>Additional Inherited Members</h3>
53
<li><div class="fn"/>52 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
54
<li><div class="fn"/>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
55
<li><div class="fn"/>17 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
56
<li><div class="fn"/>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
57
<li><div class="fn"/>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
58
<li><div class="fn"/>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
59
<li><div class="fn"/>4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
60
<li><div class="fn"/>4 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
62
<a name="details"></a>
64
<h2>Detailed Description</h2>
65
<p>The QSplitterHandle class provides handle functionality of the splitter.</p>
66
<p>QSplitterHandle is typically what people think about when they think about a splitter. It is the handle that is used to resize the widgets.</p>
67
<p>A typical developer using <a href="qsplitter.html">QSplitter</a> will never have to worry about QSplitterHandle. It is provided for developers who want splitter handles that do more. The typical way one would create splitter handles is to subclass <a href="qsplitter.html">QSplitter</a> and then reimplement <a href="qsplitter.html#createHandle">QSplitter::createHandle</a>() to instatiate the custom splitter handle.</p>
68
<p>Most of the functions inside QSplitterHandle are forwards to <a href="qsplitter.html">QSplitter</a> or like <a href="qsplitterhandle.html#orientation">orientation</a>() and <a href="qsplitterhandle.html#opaqueResize">opaqueResize</a>(), controlled by the <a href="qsplitter.html">QSplitter</a>.</p>
69
<p>See also <a href="qsplitter.html">QSplitter</a>.</p>
71
<h2>Member Function Documentation</h2>
72
<h3 class="fn"><a name="QSplitterHandle"></a>QSplitterHandle::QSplitterHandle ( <a href="qt.html#Orientation-enum">Qt::Orientation</a> <i>orientation</i>, <a href="qsplitter.html">QSplitter</a> * <i>parent</i> )</h3>
73
<p>Creates a <a href="qsplitter.html">QSplitter</a> handle with the given <i>orientation</i> and <a href="qsplitter.html">QSplitter</a> <i>parent</i>.</p>
74
<h3 class="fn"><a name="closestLegalPosition"></a>int QSplitterHandle::closestLegalPosition ( int <i>pos</i> ) <tt> [protected]</tt></h3>
75
<p>Returns the closest legal position to <i>pos</i> of the splitter handle. The positions are measured from the left or top edge of the splitter, even for right-to-left languages.</p>
76
<p>See also <a href="qsplitter.html#closestLegalPosition">QSplitter::closestLegalPosition</a>() and <a href="qsplitterhandle.html#moveSplitter">moveSplitter</a>().</p>
77
<h3 class="fn"><a name="moveSplitter"></a>void QSplitterHandle::moveSplitter ( int <i>pos</i> ) <tt> [protected]</tt></h3>
78
<p>Tells the splitter to move this handle to position <i>pos</i>, which is the distance from the left or top edge of the widget.</p>
79
<p>Note that <i>pos</i> is also measured from the left (or top) for right-to-left languages. This function will map <i>pos</i> to the appropriate position before calling <a href="qsplitter.html#moveSplitter">QSplitter::moveSplitter</a>().</p>
80
<p>See also <a href="qsplitter.html#moveSplitter">QSplitter::moveSplitter</a>() and <a href="qsplitterhandle.html#closestLegalPosition">closestLegalPosition</a>().</p>
81
<h3 class="fn"><a name="opaqueResize"></a>bool QSplitterHandle::opaqueResize () const</h3>
82
<p>Returns true if widgets are resized dynamically (opaquely), otherwise returns false. This value is controlled by the <a href="qsplitter.html">QSplitter</a>.</p>
83
<p>See also <a href="qsplitter.html#opaqueResize-prop">QSplitter::opaqueResize</a>().</p>
84
<h3 class="fn"><a name="orientation"></a><a href="qt.html#Orientation-enum">Qt::Orientation</a> QSplitterHandle::orientation () const</h3>
85
<p>Returns the handle's orientation. This is usually propagated from the <a href="qsplitter.html">QSplitter</a>.</p>
86
<p>See also <a href="qsplitter.html#orientation-prop">QSplitter::orientation</a>().</p>
87
<h3 class="fn"><a name="setOrientation"></a>void QSplitterHandle::setOrientation ( <a href="qt.html#Orientation-enum">Qt::Orientation</a> <i>orientation</i> )</h3>
88
<p>Sets the orientation of the splitter handle to <i>orientation</i>. This is usually propogated from the <a href="qsplitter.html">QSplitter</a>.</p>
89
<p>See also <a href="qsplitter.html#orientation-prop">QSplitter::setOrientation</a>().</p>
90
<h3 class="fn"><a name="splitter"></a><a href="qsplitter.html">QSplitter</a> * QSplitterHandle::splitter () const</h3>
91
<p>Returns the splitter associated with this splitter handle.</p>
92
<p>See also <a href="qsplitter.html#handle">QSplitter::handle</a>().</p>
93
<p /><address><hr /><div align="center">
94
<table width="100%" cellspacing="0" border="0"><tr class="address">
95
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
96
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
97
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
98
</tr></table></div></address></body>