1QListBoxPixmap(3qt) QListBoxPixmap(3qt)
2
3
4
6 QListBoxPixmap - List box items with a pixmap and optional text
7
9 #include <qlistbox.h>
10
11 Inherits QListBoxItem.
12
13 Public Members
14 QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap )
15 QListBoxPixmap ( const QPixmap & pixmap )
16 QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap,
17 QListBoxItem * after )
18 QListBoxPixmap ( QListBox * listbox, const QPixmap & pix, const QString
19 & text )
20 QListBoxPixmap ( const QPixmap & pix, const QString & text )
21 QListBoxPixmap ( QListBox * listbox, const QPixmap & pix, const QString
22 & text, QListBoxItem * after )
23 ~QListBoxPixmap ()
24 virtual const QPixmap * pixmap () const
25 virtual int height ( const QListBox * lb ) const
26 virtual int width ( const QListBox * lb ) const
27
28 Protected Members
29 virtual void paint ( QPainter * painter )
30
32 The QListBoxPixmap class provides list box items with a pixmap and
33 optional text.
34
35 Items of this class are drawn with the pixmap on the left with the
36 optional text to the right of the pixmap.
37
38 See also QListBox, QListBoxItem, and Advanced Widgets.
39
42 Constructs a new list box item in list box listbox showing the pixmap
43 pixmap.
44
46 Constructs a new list box item showing the pixmap pixmap.
47
49 QListBoxItem * after )
50 Constructs a new list box item in list box listbox showing the pixmap
51 pixmap. The item gets inserted after the item after, or at the
52 beginning if after is 0.
53
55 const QString & text )
56 Constructs a new list box item in list box listbox showing the pixmap
57 pix and the text text.
58
60 Constructs a new list box item showing the pixmap pix and the text to
61 text.
62
64 const QString & text, QListBoxItem * after )
65 Constructs a new list box item in list box listbox showing the pixmap
66 pix and the string text. The item gets inserted after the item after,
67 or at the beginning if after is 0.
68
70 Destroys the item.
71
73 Returns the height of the pixmap in list box lb.
74
75 See also paint() and width().
76
77 Reimplemented from QListBoxItem.
78
80 Draws the pixmap using painter.
81
82 Reimplemented from QListBoxItem.
83
85 Returns the pixmap associated with the item.
86
87 Reimplemented from QListBoxItem.
88
90 Returns the width of the pixmap plus some margin in list box lb.
91
92 See also paint() and height().
93
94 Reimplemented from QListBoxItem.
95
96
98 http://doc.trolltech.com/qlistboxpixmap.html
99 http://www.trolltech.com/faq/tech.html
100
102 Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
103 license file included in the distribution for a complete license
104 statement.
105
107 Generated automatically from the source code.
108
110 If you find a bug in Qt, please report it as described in
111 http://doc.trolltech.com/bughowto.html. Good bug reports help us to
112 help you. Thank you.
113
114 The definitive Qt documentation is provided in HTML format; it is
115 located at $QTDIR/doc/html and can be read using Qt Assistant or with a
116 web browser. This man page is provided as a convenience for those users
117 who prefer man pages, although this format is not officially supported
118 by Trolltech.
119
120 If you find errors in this manual page, please report them to qt-
121 bugs@trolltech.com. Please include the name of the manual page
122 (qlistboxpixmap.3qt) and the Qt version (3.3.8).
123
124
125
126Trolltech AS 2 February 2007 QListBoxPixmap(3qt)