Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QStringList Class Reference

\inmodule QtCore More...

+ Collaboration diagram for QStringList:

Related Symbols

(Note that these are not member symbols.)

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

Detailed Description

\inmodule QtCore

The QStringList class provides a list of strings.

\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 Symbol 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 22 of file qstringlist.h.

◆ 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: