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/qsizegrip.cpp -->
7
<title>Qt 4.0: QSizeGrip 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">QSizeGrip Class Reference</h1>
21
<p>The QSizeGrip class provides a corner-grip for resizing a top-level window. <a href="#details">More...</a></p>
22
<pre>#include <QSizeGrip></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="qsizegrip-members.html">List of all members, including inherited members</a></li>
26
<li><a href="qsizegrip-qt3.html">Qt 3 support members</a></li>
28
<a name="public-functions"></a>
29
<h3>Public Functions</h3>
31
<li><div class="fn"/><b><a href="qsizegrip.html#QSizeGrip">QSizeGrip</a></b> ( QWidget * <i>parent</i> )</li>
32
<li><div class="fn"/><b><a href="qsizegrip.html#dtor.QSizeGrip">~QSizeGrip</a></b> ()</li>
33
<li><div class="fn"/>virtual QSize <b><a href="qsizegrip.html#sizeHint">sizeHint</a></b> () const</li>
36
<li><div class="fn"/>183 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
37
<li><div class="fn"/>28 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
38
<li><div class="fn"/>10 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
40
<a name="protected-functions"></a>
41
<h3>Protected Functions</h3>
43
<li><div class="fn"/>virtual void <b><a href="qsizegrip.html#mouseMoveEvent">mouseMoveEvent</a></b> ( QMouseEvent * <i>e</i> )</li>
44
<li><div class="fn"/>virtual void <b><a href="qsizegrip.html#mousePressEvent">mousePressEvent</a></b> ( QMouseEvent * <i>e</i> )</li>
45
<li><div class="fn"/>virtual void <b><a href="qsizegrip.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>event</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 QSizeGrip class provides a corner-grip for resizing a top-level window.</p>
66
<p>This widget works like the standard Windows resize handle. In the <a href="winsystem.html#x11">X11</a> version this resize handle generally works differently from the one provided by the system; we hope to reduce this difference in the future.</p>
67
<p>Put this widget anywhere in a widget tree and the user can use it to resize the top-level window. Generally, this should be in the lower right-hand corner. Note that <a href="qstatusbar.html">QStatusBar</a> already uses this widget, so if you have a status bar (e.g. you are using <a href="qmainwindow.html">QMainWindow</a>), then you don't need to use this widget explicitly.</p>
68
<p>On some platforms the sizegrip automatically hides itself when the window is shown full screen or maximised.</p>
69
<p><img src="images/qsizegrip-m.png" alt="Screenshot in Motif style" /> <img src="images/qsizegrip-w.png" alt="Screenshot in Windows style" /></p>
70
<p>See also <a href="qstatusbar.html">QStatusBar</a> and <a href="qwidget.html#windowState">QWidget::windowState</a>().</p>
72
<h2>Member Function Documentation</h2>
73
<h3 class="fn"><a name="QSizeGrip"></a>QSizeGrip::QSizeGrip ( <a href="qwidget.html">QWidget</a> * <i>parent</i> )</h3>
74
<p>Constructs a resize corner as a child widget of <i>parent</i>.</p>
75
<h3 class="fn"><a name="dtor.QSizeGrip"></a>QSizeGrip::~QSizeGrip ()</h3>
76
<p>Destroys the size grip.</p>
77
<h3 class="fn"><a name="mouseMoveEvent"></a>void QSizeGrip::mouseMoveEvent ( <a href="qmouseevent.html">QMouseEvent</a> * <i>e</i> ) <tt> [virtual protected]</tt></h3>
78
<p>Resizes the top-level widget containing this widget. The event is in <i>e</i>.</p>
79
<p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget</a>.</p>
80
<h3 class="fn"><a name="mousePressEvent"></a>void QSizeGrip::mousePressEvent ( <a href="qmouseevent.html">QMouseEvent</a> * <i>e</i> ) <tt> [virtual protected]</tt></h3>
81
<p>Primes the resize operation. The event is in <i>e</i>.</p>
82
<p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget</a>.</p>
83
<h3 class="fn"><a name="paintEvent"></a>void QSizeGrip::paintEvent ( <a href="qpaintevent.html">QPaintEvent</a> * <i>event</i> ) <tt> [virtual protected]</tt></h3>
84
<p>Paints the resize grip. Resize grips are usually rendered as small diagonal textured lines in the lower-right corner. The event is in <i>event</i>.</p>
85
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget</a>.</p>
86
<h3 class="fn"><a name="sizeHint"></a><a href="qsize.html">QSize</a> QSizeGrip::sizeHint () const <tt> [virtual]</tt></h3>
87
<p>Returns the size grip's size hint; this is a small size.</p>
88
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget</a>.</p>
89
<p /><address><hr /><div align="center">
90
<table width="100%" cellspacing="0" border="0"><tr class="address">
91
<td width="30%">Copyright © 2005 <a href="trolltech.html">Trolltech</a></td>
92
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
93
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
94
</tr></table></div></address></body>