source: trunk/doc/html/qlistboxtext.html

Last change on this file was 190, checked in by rudi, 14 years ago

reference documentation added

File size: 5.5 KB
Line 
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/qlistbox.cpp:524 -->
3<html>
4<head>
5<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
6<title>QListBoxText Class</title>
7<style type="text/css"><!--
8fn { margin-left: 1cm; text-indent: -1cm; }
9a:link { color: #004faf; text-decoration: none }
10a:visited { color: #672967; text-decoration: none }
11body { 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&nbsp;Classes</font></a>
23 | <a href="mainclasses.html">
24<font color="#004faf">Main&nbsp;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&nbsp;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>QListBoxText Class Reference</h1>
33
34<p>The QListBoxText class provides list box items that display text.
35<a href="#details">More...</a>
36<p><tt>#include &lt;<a href="qlistbox-h.html">qlistbox.h</a>&gt;</tt>
37<p>Inherits <a href="qlistboxitem.html">QListBoxItem</a>.
38<p><a href="qlistboxtext-members.html">List of all member functions.</a>
39<h2>Public Members</h2>
40<ul>
41<li class=fn><a href="#QListBoxText"><b>QListBoxText</b></a> ( QListBox&nbsp;*&nbsp;listbox, const&nbsp;QString&nbsp;&amp;&nbsp;text = QString::null )</li>
42<li class=fn><a href="#QListBoxText-2"><b>QListBoxText</b></a> ( const&nbsp;QString&nbsp;&amp;&nbsp;text = QString::null )</li>
43<li class=fn><a href="#QListBoxText-3"><b>QListBoxText</b></a> ( QListBox&nbsp;*&nbsp;listbox, const&nbsp;QString&nbsp;&amp;&nbsp;text, QListBoxItem&nbsp;*&nbsp;after )</li>
44<li class=fn><a href="#~QListBoxText"><b>~QListBoxText</b></a> ()</li>
45<li class=fn>virtual int <a href="#height"><b>height</b></a> ( const&nbsp;QListBox&nbsp;*&nbsp;lb ) const</li>
46<li class=fn>virtual int <a href="#width"><b>width</b></a> ( const&nbsp;QListBox&nbsp;*&nbsp;lb ) const</li>
47</ul>
48<h2>Protected Members</h2>
49<ul>
50<li class=fn>virtual void <a href="#paint"><b>paint</b></a> ( QPainter&nbsp;*&nbsp;painter )</li>
51</ul>
52<hr><a name="details"></a><h2>Detailed Description</h2>
53
54
55The QListBoxText class provides list box items that display text.
56<p>
57<p> The text is drawn in the widget's current font. If you need
58several different fonts, you must implement your own subclass of
59<a href="qlistboxitem.html">QListBoxItem</a>.
60<p> <p>See also <a href="qlistbox.html">QListBox</a>, <a href="qlistboxitem.html">QListBoxItem</a>, and <a href="advanced.html">Advanced Widgets</a>.
61
62<hr><h2>Member Function Documentation</h2>
63<h3 class=fn><a name="QListBoxText"></a>QListBoxText::QListBoxText ( <a href="qlistbox.html">QListBox</a>&nbsp;*&nbsp;listbox, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text = QString::null )
64</h3>
65Constructs a list box item in list box <em>listbox</em> showing the text
66<em>text</em>.
67
68<h3 class=fn><a name="QListBoxText-2"></a>QListBoxText::QListBoxText ( const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text = QString::null )
69</h3>
70Constructs a list box item showing the text <em>text</em>.
71
72<h3 class=fn><a name="QListBoxText-3"></a>QListBoxText::QListBoxText ( <a href="qlistbox.html">QListBox</a>&nbsp;*&nbsp;listbox, const&nbsp;<a href="qstring.html">QString</a>&nbsp;&amp;&nbsp;text, <a href="qlistboxitem.html">QListBoxItem</a>&nbsp;*&nbsp;after )
73</h3>
74Constructs a list box item in list box <em>listbox</em> showing the text
75<em>text</em>. The item is inserted after the item <em>after</em>, or at the
76beginning if <em>after</em> is 0.
77
78<h3 class=fn><a name="~QListBoxText"></a>QListBoxText::~QListBoxText ()
79</h3>
80Destroys the item.
81
82<h3 class=fn>int <a name="height"></a>QListBoxText::height ( const&nbsp;<a href="qlistbox.html">QListBox</a>&nbsp;*&nbsp;lb ) const<tt> [virtual]</tt>
83</h3>
84Returns the height of a line of text in list box <em>lb</em>.
85<p> <p>See also <a href="#paint">paint</a>() and <a href="#width">width</a>().
86
87<p>Reimplemented from <a href="qlistboxitem.html#height">QListBoxItem</a>.
88<h3 class=fn>void <a name="paint"></a>QListBoxText::paint ( <a href="qpainter.html">QPainter</a>&nbsp;*&nbsp;painter )<tt> [virtual protected]</tt>
89</h3>
90Draws the text using <em>painter</em>.
91
92<p>Reimplemented from <a href="qlistboxitem.html#paint">QListBoxItem</a>.
93<h3 class=fn>int <a name="width"></a>QListBoxText::width ( const&nbsp;<a href="qlistbox.html">QListBox</a>&nbsp;*&nbsp;lb ) const<tt> [virtual]</tt>
94</h3>
95Returns the width of this line in list box <em>lb</em>.
96<p> <p>See also <a href="#paint">paint</a>() and <a href="#height">height</a>().
97
98<p>Reimplemented from <a href="qlistboxitem.html#width">QListBoxItem</a>.
99<!-- eof -->
100<hr><p>
101This file is part of the <a href="index.html">Qt toolkit</a>.
102Copyright &copy; 1995-2007
103<a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
104<table width=100% cellspacing=0 border=0><tr>
105<td>Copyright &copy; 2007
106<a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
107<td align=right><div align=right>Qt 3.3.8</div>
108</table></div></address></body>
109</html>
Note: See TracBrowser for help on using the repository browser.