QListBox provides a single-column list of items. (details) (complete member list)
#include <qlistbox.h>
Inherits QTableWidget.
Constructs a list box. The arguments are passed to the parent class as usual.
Deletes the list box and frees the memory used.
Returns the height of the item at position l in pixels.
Returns the walue set by setCellWidth().
See also: cellHeight().
Scrolls the list box so the highlighted item is in the middle of the visible box.
Replaces the item at posistion index with string. If index is negative or too large, changeItem() does nothing.
See also: insertItem(), removeItem().
Replaces the item at posistion index with pixmap. If index is negative or too large, changeItem() does nothing.
See also: insertItem(), removeItem().
Replaces the item at posistion index with lbi. If index is negative or too large, changeItem() does nothing.
See also: insertItem(), removeItem().
Deletes all items in the list.
See also: removeItems(), setStrList().
Deletes all items in the list box.
Returns the number of items in the list box.
Inserts string into the list and sorts the list.
See also: insertItem().
Inserts string into the list at index. If index is negative, string is inserted at the end of the list.
See also: insertStrList().
Inserts pixmap into the list at index. If index is negative, pixmap is inserted at the end of the list.
See also: insertStrList().
Inserts lbi into the list at index. If index is negative, lbi is inserted at the end of the list.
See also: insertStrList().
Inserts the string list l into the list at item index. If index is negative, l is inserted at the end of the list. If index is too large, insertStrList() doesn't do anything.
See also: insertItem(), inSort().
Inserts the numStrings strings at strs into the list at item index. If index is negative, l is inserted at the end of the list. If index is too large, insertStrList() doesn't do anything.
See also: insertItem(), inSort().
Returns a pointer to the item at position index.
This virtual function returns 0 in QListBox and must be reimplemented by subclasses that use other types.
Returns TRUE if the item at position index is at least partly visible.
This virtual function returns 0 in QListBox and must be reimplemented by subclasses that use other types.
This event handler knows about the up and down arrow keys and about enter.
Up and down arrow keys make the highlighted item move and if necessary the list scroll.
Enter makes the list box emit the selected() signal.
See also: selected(), setTopItem().
This event handler emits the selected() signal for the double-clicked item. It ignores clicks that don't fall on an item.
This event handler moves the highlight to the clicked item, and ignores mouse clicks that do not fall on an item.
Returns the number of visible items. This may change at any time since the user may resize the widget.
Repaints the cell at position row using p. The column argument is ignored, it is present because QTableWidget is more general.
See also: QTableWidget::paintCell().
Returns a pointer to the pixmap at position index, or a null pointer if the position either doesn't exist or doesn't contain a pixmap.
See also: string().
Removes the item at position index.
See also: insertItem().
Sets the highlighted item to the item at position index. The highlighting is moved and list scrolled as necessary.
Sets the list box' contents to l. The list box is cleared in various ways; scrolled to the top of the list and so on.
See also: insertStrList(), insertItem().
Sets the list box' contents to the numStrings at l. The list box is cleared in various ways; scrolled to the top of the list and so on.
See also: insertStrList(), insertItem().
Not implemented yet.
Returns a pointer to the string at position index, or a null pointer if the position either doesn't exist or doesn't contain a string.
See also: pixmap().
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: