Qt logo

QListBoxPixmap Class Reference


The QListBoxPixmap class provides list box items with a pixmap. More...

#include <qlistbox.h>

Inherits QListBoxItem.

List of all member functions.

Public Members

Protected Members


Detailed Description

The QListBoxPixmap class provides list box items with a pixmap.

See also: QListBox and QListBoxItem.


Member Function Documentation

QListBoxPixmap::QListBoxPixmap ( QListBox * listbox, const QPixmap & pixmap )

Creates a new list box item in listbox listbox showing the pixmap pixmap.

QListBoxPixmap::QListBoxPixmap ( const QPixmap & pixmap )

Creates a new list box item showing the pixmap pixmap.

QListBoxPixmap::~QListBoxPixmap ()

Destroys the item.

int QListBoxPixmap::height ( const QListBox * ) const [virtual]

Returns the height of the pixmap.

See also: paint() and width().

Reimplemented from QListBoxItem.

void QListBoxPixmap::paint ( QPainter * painter ) [virtual protected]

Draws the pixmap using painter.

Reimplemented from QListBoxItem.

const QPixmap * QListBoxPixmap::pixmap () const [virtual]

Returns the pixmap connected with the item.

Reimplemented from QListBoxItem.

int QListBoxPixmap::width ( const QListBox * ) const

Returns the width of the pixmap, plus some margin.

See also: paint() and height().


Search the documentation, FAQ, qt-interest archive and more (uses www.troll.no):


This file is part of the Qt toolkit, copyright © 1995-99 Troll Tech, all rights reserved.


Copyright İ 1999 Troll TechTrademarks
Qt version 2.0.2