The Q3ListBoxText class provides list box items that display text. More...
#include <Q3ListBoxText>
This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information.
Inherits: Q3ListBoxItem.
Q3ListBoxText ( Q3ListBox * listbox, const QString & text = QString() ) | |
Q3ListBoxText ( const QString & text = QString() ) | |
Q3ListBoxText ( Q3ListBox * listbox, const QString & text, Q3ListBoxItem * after ) | |
~Q3ListBoxText () |
virtual int | height ( const Q3ListBox * lb ) const |
virtual int | rtti () const |
virtual int | width ( const Q3ListBox * lb ) const |
virtual void | paint ( QPainter * painter ) |
The Q3ListBoxText class provides list box items that display text.
The text is drawn in the widget's current font. If you need several different fonts, you must implement your own subclass of Q3ListBoxItem.
See also Q3ListBox and Q3ListBoxItem.
Constructs a list box item in list box listbox showing the text text.
Constructs a list box item showing the text text.
Constructs a list box item in list box listbox showing the text text. The item is inserted after the item after, or at the beginning if after is 0.
Destroys the item.
Reimplemented from Q3ListBoxItem::height().
Returns the height of a line of text in list box lb.
Reimplemented from Q3ListBoxItem::paint().
Draws the text using painter.
Reimplemented from Q3ListBoxItem::rtti().
Returns 1.
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.
Reimplemented from Q3ListBoxItem::width().
Returns the width of this line in list box lb.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.