
We bake cookies in your browser for a better experience. Using this site means that you consent.Read More
TheQ3ListBoxPixmap class provides list box items with a pixmap and optional text.More...
| Header: | #include <Q3ListBoxPixmap> |
| Inherits: | Q3ListBoxItem |
| Q3ListBoxPixmap(Q3ListBox * listbox, const QPixmap & pixmap) | |
| Q3ListBoxPixmap(const QPixmap & pixmap) | |
| Q3ListBoxPixmap(Q3ListBox * listbox, const QPixmap & pixmap, Q3ListBoxItem * after) | |
| Q3ListBoxPixmap(Q3ListBox * listbox, const QPixmap & pix, const QString & text) | |
| Q3ListBoxPixmap(const QPixmap & pix, const QString & text) | |
| Q3ListBoxPixmap(Q3ListBox * listbox, const QPixmap & pix, const QString & text, Q3ListBoxItem * after) | |
| ~Q3ListBoxPixmap() |
| virtual int | height(const Q3ListBox * lb) const |
| virtual const QPixmap * | pixmap() const |
| virtual int | rtti() const |
| virtual int | width(const Q3ListBox * lb) const |
| virtual void | paint(QPainter * painter) |
TheQ3ListBoxPixmap class provides list box items with a pixmap and optional text.
Items of this class are drawn with the pixmap on the left with the optional text to the right of the pixmap.
See alsoQ3ListBox andQ3ListBoxItem.
Constructs a new list box item in list boxlistbox showing the pixmappixmap.
Constructs a new list box item showing the pixmappixmap.
Constructs a new list box item in list boxlistbox showing the pixmappixmap. The item gets inserted after the itemafter, or at the beginning ifafter is 0.
Constructs a new list box item in list boxlistbox showing the pixmappix and the texttext.
Constructs a new list box item showing the pixmappix and the text totext.
Constructs a new list box item in list boxlistbox showing the pixmappix and the stringtext. The item gets inserted after the itemafter, or at the beginning ifafter is 0.
Destroys the item.
[virtual]int Q3ListBoxPixmap::height(constQ3ListBox * lb) constReimplemented fromQ3ListBoxItem::height().
Returns the height of the pixmap in list boxlb.
[virtual protected]void Q3ListBoxPixmap::paint(QPainter * painter)Reimplemented fromQ3ListBoxItem::paint().
Draws the pixmap usingpainter.
[virtual]constQPixmap * Q3ListBoxPixmap::pixmap() constReimplemented fromQ3ListBoxItem::pixmap().
Returns the pixmap associated with the item.
[virtual]int Q3ListBoxPixmap::rtti() constReimplemented fromQ3ListBoxItem::rtti().
Returns 2.
Make your derived classes return their own values for rtti(), and you can distinguish between listbox items. You should use values greater than 1000 preferably a large random number, to allow for extensions to this class.
[virtual]int Q3ListBoxPixmap::width(constQ3ListBox * lb) constReimplemented fromQ3ListBoxItem::width().
Returns the width of the pixmap plus some margin in list boxlb.
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of theGNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.