Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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 21 of file qstringlist.h.

References list, matcher, QtPrivate::QStringList_contains(), QtPrivate::QStringList_filter(), QtPrivate::QStringList_indexOf(), QtPrivate::QStringList_join(), QtPrivate::QStringList_lastIndexOf(), QtPrivate::QStringList_removeDuplicates(), QtPrivate::QStringList_replaceInStrings(), QtPrivate::QStringList_sort(), rx(), sep, and str.

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