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/qsizegrip.cpp:78 -->
|
---|
3 | <html>
|
---|
4 | <head>
|
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
6 | <title>QSizeGrip 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>QSizeGrip Class Reference</h1>
|
---|
33 |
|
---|
34 | <p>The QSizeGrip class provides a corner-grip for resizing a top-level window.
|
---|
35 | <a href="#details">More...</a>
|
---|
36 | <p><tt>#include <<a href="qsizegrip-h.html">qsizegrip.h</a>></tt>
|
---|
37 | <p>Inherits <a href="qwidget.html">QWidget</a>.
|
---|
38 | <p><a href="qsizegrip-members.html">List of all member functions.</a>
|
---|
39 | <h2>Public Members</h2>
|
---|
40 | <ul>
|
---|
41 | <li class=fn><a href="#QSizeGrip"><b>QSizeGrip</b></a> ( QWidget * parent, const char * name = 0 )</li>
|
---|
42 | <li class=fn><a href="#~QSizeGrip"><b>~QSizeGrip</b></a> ()</li>
|
---|
43 | <li class=fn>virtual QSize <a href="#sizeHint"><b>sizeHint</b></a> () const</li>
|
---|
44 | </ul>
|
---|
45 | <h2>Protected Members</h2>
|
---|
46 | <ul>
|
---|
47 | <li class=fn>virtual void <a href="#paintEvent"><b>paintEvent</b></a> ( QPaintEvent * e )</li>
|
---|
48 | <li class=fn>virtual void <a href="#mousePressEvent"><b>mousePressEvent</b></a> ( QMouseEvent * e )</li>
|
---|
49 | <li class=fn>virtual void <a href="#mouseMoveEvent"><b>mouseMoveEvent</b></a> ( QMouseEvent * e )</li>
|
---|
50 | </ul>
|
---|
51 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
52 |
|
---|
53 |
|
---|
54 | <p> The QSizeGrip class provides a corner-grip for resizing a top-level window.
|
---|
55 | <p>
|
---|
56 |
|
---|
57 |
|
---|
58 | <p> This widget works like the standard Windows resize handle. In the
|
---|
59 | X11 version this resize handle generally works differently from
|
---|
60 | the one provided by the system; we hope to reduce this difference
|
---|
61 | in the future.
|
---|
62 | <p> Put this widget anywhere in a widget tree and the user can use it
|
---|
63 | to resize the top-level window. Generally, this should be in the
|
---|
64 | lower right-hand corner. Note that <a href="qstatusbar.html">QStatusBar</a> already uses this
|
---|
65 | widget, so if you have a status bar (e.g. you are using
|
---|
66 | <a href="qmainwindow.html">QMainWindow</a>), then you don't need to use this widget explicitly.
|
---|
67 | <p> <img src=qsizegrip-m.png> <img src=qsizegrip-w.png>
|
---|
68 | <p> <p>See also <a href="qstatusbar.html">QStatusBar</a>, <a href="appearance.html">Widget Appearance and Style</a>, <a href="application.html">Main Window and Related Classes</a>, and <a href="basic.html">Basic Widgets</a>.
|
---|
69 |
|
---|
70 | <hr><h2>Member Function Documentation</h2>
|
---|
71 | <h3 class=fn><a name="QSizeGrip"></a>QSizeGrip::QSizeGrip ( <a href="qwidget.html">QWidget</a> * parent, const char * name = 0 )
|
---|
72 | </h3>
|
---|
73 | Constructs a resize corner called <em>name</em>, as a child widget of <em>parent</em>.
|
---|
74 |
|
---|
75 | <h3 class=fn><a name="~QSizeGrip"></a>QSizeGrip::~QSizeGrip ()
|
---|
76 | </h3>
|
---|
77 | Destroys the size grip.
|
---|
78 |
|
---|
79 | <h3 class=fn>void <a name="mouseMoveEvent"></a>QSizeGrip::mouseMoveEvent ( <a href="qmouseevent.html">QMouseEvent</a> * e )<tt> [virtual protected]</tt>
|
---|
80 | </h3>
|
---|
81 | Resizes the top-level widget containing this widget. The event is
|
---|
82 | in <em>e</em>.
|
---|
83 |
|
---|
84 | <p>Reimplemented from <a href="qwidget.html#mouseMoveEvent">QWidget</a>.
|
---|
85 | <h3 class=fn>void <a name="mousePressEvent"></a>QSizeGrip::mousePressEvent ( <a href="qmouseevent.html">QMouseEvent</a> * e )<tt> [virtual protected]</tt>
|
---|
86 | </h3>
|
---|
87 | Primes the resize operation. The event is in <em>e</em>.
|
---|
88 |
|
---|
89 | <p>Reimplemented from <a href="qwidget.html#mousePressEvent">QWidget</a>.
|
---|
90 | <h3 class=fn>void <a name="paintEvent"></a>QSizeGrip::paintEvent ( <a href="qpaintevent.html">QPaintEvent</a> * e )<tt> [virtual protected]</tt>
|
---|
91 | </h3>
|
---|
92 | Paints the resize grip. Resize grips are usually rendered as small
|
---|
93 | diagonal textured lines in the lower-right corner. The event is in
|
---|
94 | <em>e</em>.
|
---|
95 |
|
---|
96 | <p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget</a>.
|
---|
97 | <h3 class=fn><a href="qsize.html">QSize</a> <a name="sizeHint"></a>QSizeGrip::sizeHint () const<tt> [virtual]</tt>
|
---|
98 | </h3>
|
---|
99 | Returns the size grip's size hint; this is a small size.
|
---|
100 |
|
---|
101 | <p>Reimplemented from <a href="qwidget.html#sizeHint">QWidget</a>.
|
---|
102 | <!-- eof -->
|
---|
103 | <hr><p>
|
---|
104 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
105 | Copyright © 1995-2007
|
---|
106 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
107 | <table width=100% cellspacing=0 border=0><tr>
|
---|
108 | <td>Copyright © 2007
|
---|
109 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
110 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
111 | </table></div></address></body>
|
---|
112 | </html>
|
---|