Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions | ![]() |
The QTextList class provides a list in a QTextDocument. More...
#include <QTextList>
Inherits QTextBlockGroup.
The QTextList class provides a list in a QTextDocument.
Lists can be created by QTextCursor::createList() and queried with QTextCursor::currentList().
The number of items in a list is given by count(). A cursor positioned at a given list item is returned by item(), and the text of a given list item is returned by itemText(). A list item can be deleted with removeItem(). The list's format is set with setFormat().
Returns the number of items in the list.
See also isEmpty().
Returns the list's format.
Returns true if the list has no items; otherwise returns false.
See also count().
Returns a QTextCursor positioned at the i-th item in the list.
See also count(), item(), and itemText().
Returns the index of the list item at cursor position blockIt.
Returns the text of the list item at cursor position blockIt.
Removes the block block from the list.
Removes the item at item position i from the list.
Sets the list's format to format.
Copyright © 2004 Trolltech. | Trademarks | Qt 4.0.0-tp2 |