QtBase  v6.3.1
Related Functions | List of all members
QStringList Class Reference

The QStringList class provides a list of strings. More...

Related Functions

(Note that these are not member functions.)

 QT_BEGIN_NAMESPACEQStringListIterator
 
 QMutableStringListIterator
 

Detailed Description

The QStringList class provides a list of strings.

\inmodule QtCore

\reentrant

QStringList inherits from QList<QString>. Like QList, QStringList is \l{implicitly shared}. It provides fast index-based access as well as fast insertions and removals. Passing string lists as value parameters is both fast and safe.

All of QList's functionality also applies to QStringList. For example, you can use isEmpty() to test whether the list is empty, and you can call functions like append(), prepend(), insert(), replace(), removeAll(), removeAt(), removeFirst(), removeLast(), and removeOne() to modify a QStringList. In addition, QStringList provides a few convenience functions that make handling lists of strings easier:

Friends And Related Function Documentation

◆ QMutableStringListIterator()

The QStringListIterator type definition provides a Java-style non-const iterator for QStringList.

QStringList provides both \l{Java-style iterators} and \l{STL-style iterators}. The Java-style non-const iterator is simply a type definition for QMutableListIterator<QString>.

See also
QStringListIterator, QStringList::iterator

Definition at line 57 of file qstringlist.h.

Here is the call graph for this function:

◆ QT_BEGIN_NAMESPACEQStringListIterator()

QT_BEGIN_NAMESPACEQStringListIterator
related

The QStringListIterator type definition provides a Java-style const iterator for QStringList.

QStringList provides both \l{Java-style iterators} and \l{STL-style iterators}. The Java-style const iterator is simply a type definition for QListIterator<QString>.

See also
QMutableStringListIterator, QStringList::const_iterator

The documentation for this class was generated from the following file: