Qt logo

QListBoxText Class Reference


The QListBoxText class provides list box items with text. More...

#include <qlistbox.h>

Inherits QListBoxItem.

List of all member functions.

Public Members


Detailed Description

The QListBoxText class provides list box items with text.

The text is drawn in the widget's current font. If you need several different fonts, you have to make your own subclass of QListBoxItem.

See also: QListBox and QListBoxItem.


Member Function Documentation

QListBoxText::QListBoxText ( const char * text = 0 )

Constructs a list box item showing the text text.

QListBoxText::~QListBoxText ()

Destroys the item.

int QListBoxText::height ( const QListBox * lb ) const [virtual]

Returns the height of a line of text.

See also: paint() and width().

Reimplemented from QListBoxItem.

void QListBoxText::paint ( QPainter * p ) [virtual]

Draws the text using painter p.

Reimplemented from QListBoxItem.

int QListBoxText::width ( const QListBox * lb ) const [virtual]

Returns the width of this line.

See also: paint() and height().

Reimplemented from QListBoxItem.


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


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

It was generated from the following files:


Copyright © 1998 Troll TechTrademarks
Qt version 1.42