Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 683

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qstringlist.cpp -->
  <title>QStringList Class | Qt Core 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtcore-index.html">Qt Core</a></td><td ><a href="qtcore-module.html">C++ Classes</a></td><td >QStringList</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#adding-strings">Adding Strings</a></li>
<li class="level2"><a href="#iterating-over-the-strings">Iterating Over the Strings</a></li>
<li class="level2"><a href="#manipulating-the-strings">Manipulating the Strings</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QStringList Class</h1>
<!-- $$$QStringList-brief -->
<p>The <a href="qstringlist.html">QStringList</a> class provides a list of strings. <a href="#details">More...</a></p>
<!-- @@@QStringList -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QStringList&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += core</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qlist.html">QList</a></td></tr></table></div><ul>
<li><a href="qstringlist-members.html">List of all members, including inherited members</a></li>
</ul>
<p><b>Note:</b> All functions in this class are reentrant.</p>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QStringList">QStringList</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QStringList-1">QStringList</a></b>(const QString &amp;<i>str</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QStringList-2">QStringList</a></b>(const QList&lt;QString&gt; &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QStringList-3">QStringList</a></b>(QList&lt;QString&gt; &amp;&amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QStringList-4">QStringList</a></b>(std::initializer_list&lt;QString&gt; <i>args</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#contains">contains</a></b>(const QString &amp;<i>str</i>, Qt::CaseSensitivity <i>cs</i> = Qt::CaseSensitive) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#filter">filter</a></b>(const QString &amp;<i>str</i>, Qt::CaseSensitivity <i>cs</i> = Qt::CaseSensitive) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#filter-1">filter</a></b>(const QRegExp &amp;<i>rx</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#filter-2">filter</a></b>(const QRegularExpression &amp;<i>re</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#indexOf">indexOf</a></b>(const QRegExp &amp;<i>rx</i>, int <i>from</i> = 0) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#indexOf-1">indexOf</a></b>(QRegExp &amp;<i>rx</i>, int <i>from</i> = 0) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#indexOf-2">indexOf</a></b>(const QRegularExpression &amp;<i>re</i>, int <i>from</i> = 0) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#join">join</a></b>(const QString &amp;<i>separator</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#join-1">join</a></b>(QLatin1String <i>separator</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#join-2">join</a></b>(QChar <i>separator</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#lastIndexOf">lastIndexOf</a></b>(const QRegExp &amp;<i>rx</i>, int <i>from</i> = -1) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#lastIndexOf-1">lastIndexOf</a></b>(QRegExp &amp;<i>rx</i>, int <i>from</i> = -1) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#lastIndexOf-2">lastIndexOf</a></b>(const QRegularExpression &amp;<i>re</i>, int <i>from</i> = -1) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> int </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#removeDuplicates">removeDuplicates</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#replaceInStrings">replaceInStrings</a></b>(const QString &amp;<i>before</i>, const QString &amp;<i>after</i>, Qt::CaseSensitivity <i>cs</i> = Qt::CaseSensitive)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#replaceInStrings-1">replaceInStrings</a></b>(const QRegExp &amp;<i>rx</i>, const QString &amp;<i>after</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#replaceInStrings-2">replaceInStrings</a></b>(const QRegularExpression &amp;<i>re</i>, const QString &amp;<i>after</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#sort">sort</a></b>(Qt::CaseSensitivity <i>cs</i> = Qt::CaseSensitive)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#operator-2b">operator+</a></b>(const QStringList &amp;<i>other</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#operator-lt-lt">operator&lt;&lt;</a></b>(const QString &amp;<i>str</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#operator-lt-lt-1">operator&lt;&lt;</a></b>(const QStringList &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#operator-lt-lt-2">operator&lt;&lt;</a></b>(const QList&lt;QString&gt; &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#operator-eq">operator=</a></b>(const QList&lt;QString&gt; &amp;<i>other</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList &amp;</td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#operator-eq-1">operator=</a></b>(QList&lt;QString&gt; &amp;&amp;<i>other</i>)</td></tr>
</table></div>
<ul>
<li class="fn">78 public functions inherited from <a href="qlist.html#public-functions">QList</a></li>
</ul>
<a name="related-non-members"></a>
<h2 id="related-non-members">Related Non-Members</h2>
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QMutableStringListIterator-typedef">QMutableStringListIterator</a></b></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> typedef </td><td class="memItemRight bottomAlign"><b><a href="qstringlist.html#QStringListIterator-typedef">QStringListIterator</a></b></td></tr>
</table></div>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">3 static public members inherited from <a href="qlist.html#static-public-members">QList</a></li>
</ul>
<a name="details"></a>
<!-- $$$QStringList-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qstringlist.html">QStringList</a> class provides a list of strings.</p>
<p><a href="qstringlist.html">QStringList</a> inherits from <a href="qlist.html">QList</a>&lt;<a href="qstring.html">QString</a>&gt;. Like <a href="qlist.html">QList</a>, <a href="qstringlist.html">QStringList</a> is <a href="implicit-sharing.html">implicitly shared</a>. It provides fast index-based access as well as fast insertions and removals. Passing string lists as value parameters is both fast and safe.</p>
<p>All of <a href="qlist.html">QList</a>'s functionality also applies to <a href="qstringlist.html">QStringList</a>. For example, you can use <a href="qlist.html#isEmpty">isEmpty</a>() to test whether the list is empty, and you can call functions like <a href="qlist.html#append">append</a>(), <a href="qlist.html#prepend">prepend</a>(), <a href="qlist.html#insert">insert</a>(), <a href="qlist.html#replace">replace</a>(), <a href="qlist.html#removeAll">removeAll</a>(), <a href="qlist.html#removeAt">removeAt</a>(), <a href="qlist.html#removeFirst">removeFirst</a>(), <a href="qlist.html#removeLast">removeLast</a>(), and <a href="qlist.html#removeOne">removeOne</a>() to modify a <a href="qstringlist.html">QStringList</a>. In addition, <a href="qstringlist.html">QStringList</a> provides a few convenience functions that make handling lists of strings easier:</p>
<a name="adding-strings"></a>
<h3 >Adding Strings</h3>
<p>Strings can be added to a list using the <a href="qlist.html#append">append()</a>, <a href="qlist.html#operator-2b-eq">operator+=</a>() and <a href="qstringlist.html#operator-lt-lt">operator&lt;&lt;</a>() functions. For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> fonts;
      fonts <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Arial&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Helvetica&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Times&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Courier&quot;</span>;

</pre>
<a name="iterating-over-the-strings"></a>
<h3 >Iterating Over the Strings</h3>
<p>To iterate over a list, you can either use index positions or <a href="qlist.html">QList</a>'s Java-style and STL-style iterator types:</p>
<p>Indexing:</p>
<pre class="cpp">

      <span class="keyword">for</span> (<span class="type">int</span> i <span class="operator">=</span> <span class="number">0</span>; i <span class="operator">&lt;</span> fonts<span class="operator">.</span>size(); <span class="operator">+</span><span class="operator">+</span>i)
           cout <span class="operator">&lt;</span><span class="operator">&lt;</span> fonts<span class="operator">.</span>at(i)<span class="operator">.</span>toLocal8Bit()<span class="operator">.</span>constData() <span class="operator">&lt;</span><span class="operator">&lt;</span> endl;

</pre>
<p>Java-style iterator:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringListIterator-typedef">QStringListIterator</a></span> javaStyleIterator(fonts);
      <span class="keyword">while</span> (javaStyleIterator<span class="operator">.</span>hasNext())
           cout <span class="operator">&lt;</span><span class="operator">&lt;</span> javaStyleIterator<span class="operator">.</span>next()<span class="operator">.</span>toLocal8Bit()<span class="operator">.</span>constData() <span class="operator">&lt;</span><span class="operator">&lt;</span> endl;

</pre>
<p>STL-style iterator:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span><span class="operator">::</span>const_iterator constIterator;
      <span class="keyword">for</span> (constIterator <span class="operator">=</span> fonts<span class="operator">.</span>constBegin(); constIterator <span class="operator">!</span><span class="operator">=</span> fonts<span class="operator">.</span>constEnd();
             <span class="operator">+</span><span class="operator">+</span>constIterator)
          cout <span class="operator">&lt;</span><span class="operator">&lt;</span> (<span class="operator">*</span>constIterator)<span class="operator">.</span>toLocal8Bit()<span class="operator">.</span>constData() <span class="operator">&lt;</span><span class="operator">&lt;</span> endl;

</pre>
<p>The <a href="qstringlist.html#QStringListIterator-typedef">QStringListIterator</a> class is simply a type definition for <a href="qlistiterator.html">QListIterator</a>&lt;<a href="qstring.html">QString</a>&gt;. <a href="qstringlist.html">QStringList</a> also provide the <a href="qstringlist.html#QMutableStringListIterator-typedef">QMutableStringListIterator</a> class which is a type definition for <a href="qmutablelistiterator.html">QMutableListIterator</a>&lt;<a href="qstring.html">QString</a>&gt;.</p>
<a name="manipulating-the-strings"></a>
<h3 >Manipulating the Strings</h3>
<p><a href="qstringlist.html">QStringList</a> provides several functions allowing you to manipulate the contents of a list. You can concatenate all the strings in a string list into a single string (with an optional separator) using the <a href="qstringlist.html#join">join</a>() function. For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstring.html">QString</a></span> str <span class="operator">=</span> fonts<span class="operator">.</span>join(<span class="string">&quot;, &quot;</span>);
       <span class="comment">// str == &quot;Arial, Helvetica, Times, Courier&quot;</span>

</pre>
<p>The argument to join can be a single character or a string.</p>
<p>To break up a string into a string list, use the <a href="qstring.html#split">QString::split</a>() function:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">=</span> str<span class="operator">.</span>split(<span class="char">','</span>);
       <span class="comment">// list: [&quot;Arial&quot;, &quot;Helvetica&quot;, &quot;Times&quot;, &quot;Courier&quot;]</span>

</pre>
<p>The argument to split can be a single character, a string, a <a href="qregularexpression.html">QRegularExpression</a> or a (deprecated) <a href="qregexp.html">QRegExp</a>.</p>
<p>In addition, the <a href="qstringlist.html#operator-2b">operator+</a>() function allows you to concatenate two string lists into one. To sort a string list, use the <a href="qstringlist.html#sort">sort</a>() function.</p>
<p><a href="qstring.html">QString</a> list also provides the <a href="qstringlist.html#filter">filter</a>() function which lets you to extract a new list which contains only those strings which contain a particular substring (or match a particular regular expression):</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> monospacedFonts <span class="operator">=</span> fonts<span class="operator">.</span>filter(<span class="type"><a href="qregularexpression.html">QRegularExpression</a></span>(<span class="string">&quot;Courier|Fixed&quot;</span>));

</pre>
<p>The <a href="qstringlist.html#contains">contains</a>() function tells you whether the list contains a given string, while the <a href="qstringlist.html#indexOf">indexOf</a>() function returns the index of the first occurrence of the given string. The <a href="qstringlist.html#lastIndexOf">lastIndexOf</a>() function on the other hand, returns the index of the last occurrence of the string.</p>
<p>Finally, the <a href="qstringlist.html#replaceInStrings">replaceInStrings</a>() function calls <a href="qstring.html#replace">QString::replace</a>() on each string in the string list in turn. For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> files;
      files <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;$QTDIR/src/moc/moc.y&quot;</span>
            <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;$QTDIR/src/moc/moc.l&quot;</span>
            <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;$QTDIR/include/qconfig.h&quot;</span>;

      files<span class="operator">.</span>replaceInStrings(<span class="string">&quot;$QTDIR&quot;</span><span class="operator">,</span> <span class="string">&quot;/usr/lib/qt&quot;</span>);
      <span class="comment">// files: [ &quot;/usr/lib/qt/src/moc/moc.y&quot;, ...]</span>

</pre>
</div>
<p><b>See also </b><a href="qstring.html">QString</a>.</p>
<!-- @@@QStringList -->
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QStringList[overload1]$$$QStringList -->
<h3 class="fn" id="QStringList"><a name="QStringList"></a>QStringList::<span class="name">QStringList</span>()</h3>
<p>Constructs an empty string list.</p>
<!-- @@@QStringList -->
<!-- $$$QStringList$$$QStringListconstQString& -->
<h3 class="fn" id="QStringList-1"><a name="QStringList-1"></a>QStringList::<span class="name">QStringList</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>str</i>)</h3>
<p>Constructs a string list that contains the given string, <i>str</i>. Longer lists are easily created like this:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> longerList <span class="operator">=</span> (<span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span>() <span class="operator">&lt;</span><span class="operator">&lt;</span> str1 <span class="operator">&lt;</span><span class="operator">&lt;</span> str2 <span class="operator">&lt;</span><span class="operator">&lt;</span> str3);

</pre>
<p><b>See also </b><a href="qlist.html#append">append</a>().</p>
<!-- @@@QStringList -->
<!-- $$$QStringList$$$QStringListconstQList<QString>& -->
<h3 class="fn" id="QStringList-2"><a name="QStringList-2"></a>QStringList::<span class="name">QStringList</span>(const <span class="type"><a href="qlist.html#QList">QList</a></span>&lt;<span class="type"><a href="qstring.html">QString</a></span>&gt; &amp;<i>other</i>)</h3>
<p>Constructs a copy of <i>other</i>.</p>
<p>This operation takes <a href="containers.html#constant-time">constant time</a>, because <a href="qstringlist.html">QStringList</a> is <a href="implicit-sharing.html">implicitly shared</a>. This makes returning a <a href="qstringlist.html">QStringList</a> from a function very fast. If a shared instance is modified, it will be copied (copy-on-write), and that takes <a href="containers.html#linear-time">linear time</a>.</p>
<p><b>See also </b><a href="qstringlist.html#operator-eq">operator=</a>().</p>
<!-- @@@QStringList -->
<!-- $$$QStringList$$$QStringListQList<QString>&& -->
<h3 class="fn" id="QStringList-3"><a name="QStringList-3"></a>QStringList::<span class="name">QStringList</span>(<span class="type"><a href="qlist.html#QList">QList</a></span>&lt;<span class="type"><a href="qstring.html">QString</a></span>&gt; &amp;&amp;<i>other</i>)</h3>
<p>This is an overloaded function.</p>
<p>Move-constructs from <a href="qlist.html">QList</a>&lt;<a href="qstring.html">QString</a>&gt;.</p>
<p>After a successful construction, <i>other</i> will be empty.</p>
<p>This function was introduced in  Qt 5.4.</p>
<!-- @@@QStringList -->
<!-- $$$QStringList$$$QStringListstd::initializer_list<QString> -->
<h3 class="fn" id="QStringList-4"><a name="QStringList-4"></a>QStringList::<span class="name">QStringList</span>(<span class="type">std::initializer_list</span>&lt;<span class="type"><a href="qstring.html">QString</a></span>&gt; <i>args</i>)</h3>
<p>Construct a list from a std::initializer_list given by <i>args</i>.</p>
<p>This constructor is only enabled if the compiler supports C++11 initializer lists.</p>
<p>This function was introduced in  Qt 4.8.</p>
<!-- @@@QStringList -->
<!-- $$$contains[overload1]$$$containsconstQString&Qt::CaseSensitivity -->
<h3 class="fn" id="contains"><a name="contains"></a><span class="type">bool</span> QStringList::<span class="name">contains</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>str</i>, <span class="type"><a href="qt.html#CaseSensitivity-enum">Qt::CaseSensitivity</a></span> <i>cs</i> = Qt::CaseSensitive) const</h3>
<p>Returns <code>true</code> if the list contains the string <i>str</i>; otherwise returns <code>false</code>. The search is case insensitive if <i>cs</i> is <a href="qt.html#CaseSensitivity-enum">Qt::CaseInsensitive</a>; the search is case sensitive by default.</p>
<p><b>See also </b><a href="qstringlist.html#indexOf">indexOf</a>(), <a href="qstringlist.html#lastIndexOf">lastIndexOf</a>(), and <a href="qstring.html#contains">QString::contains</a>().</p>
<!-- @@@contains -->
<!-- $$$filter[overload1]$$$filterconstQString&Qt::CaseSensitivity -->
<h3 class="fn" id="filter"><a name="filter"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> QStringList::<span class="name">filter</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>str</i>, <span class="type"><a href="qt.html#CaseSensitivity-enum">Qt::CaseSensitivity</a></span> <i>cs</i> = Qt::CaseSensitive) const</h3>
<p>Returns a list of all the strings containing the substring <i>str</i>.</p>
<p>If <i>cs</i> is <a href="qt.html#CaseSensitivity-enum">Qt::CaseSensitive</a> (the default), the string comparison is case sensitive; otherwise the comparison is case insensitive.</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Bill Murray&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;John Doe&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Bill Clinton&quot;</span>;

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> result;
      result <span class="operator">=</span> list<span class="operator">.</span>filter(<span class="string">&quot;Bill&quot;</span>);
      <span class="comment">// result: [&quot;Bill Murray&quot;, &quot;Bill Clinton&quot;]</span>

</pre>
<p>This is equivalent to</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> result;
      foreach (<span class="keyword">const</span> <span class="type"><a href="qstring.html">QString</a></span> <span class="operator">&amp;</span>str<span class="operator">,</span> list) {
          <span class="keyword">if</span> (str<span class="operator">.</span>contains(<span class="string">&quot;Bill&quot;</span>))
              result <span class="operator">+</span><span class="operator">=</span> str;
      }

</pre>
<p><b>See also </b><a href="qstringlist.html#contains">contains</a>().</p>
<!-- @@@filter -->
<!-- $$$filter$$$filterconstQRegExp& -->
<h3 class="fn" id="filter-1"><a name="filter-1"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> QStringList::<span class="name">filter</span>(const <span class="type"><a href="qregexp.html">QRegExp</a></span> &amp;<i>rx</i>) const</h3>
<p>This is an overloaded function.</p>
<p>Returns a list of all the strings that match the regular expression <i>rx</i>.</p>
<!-- @@@filter -->
<!-- $$$filter$$$filterconstQRegularExpression& -->
<h3 class="fn" id="filter-2"><a name="filter-2"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> QStringList::<span class="name">filter</span>(const <span class="type"><a href="qregularexpression.html">QRegularExpression</a></span> &amp;<i>re</i>) const</h3>
<p>This is an overloaded function.</p>
<p>Returns a list of all the strings that match the regular expression <i>re</i>.</p>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@filter -->
<!-- $$$indexOf[overload1]$$$indexOfconstQRegExp&int -->
<h3 class="fn" id="indexOf"><a name="indexOf"></a><span class="type">int</span> QStringList::<span class="name">indexOf</span>(const <span class="type"><a href="qregexp.html">QRegExp</a></span> &amp;<i>rx</i>, <span class="type">int</span> <i>from</i> = 0) const</h3>
<p>Returns the index position of the first exact match of <i>rx</i> in the list, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
<p>By default, this function is case sensitive.</p>
<p><b>See also </b><a href="qstringlist.html#lastIndexOf">lastIndexOf</a>(), <a href="qstringlist.html#contains">contains</a>(), and <a href="qregexp.html#exactMatch">QRegExp::exactMatch</a>().</p>
<!-- @@@indexOf -->
<!-- $$$indexOf$$$indexOfQRegExp&int -->
<h3 class="fn" id="indexOf-1"><a name="indexOf-1"></a><span class="type">int</span> QStringList::<span class="name">indexOf</span>(<span class="type"><a href="qregexp.html">QRegExp</a></span> &amp;<i>rx</i>, <span class="type">int</span> <i>from</i> = 0) const</h3>
<p>This function overloads <a href="qstringlist.html#indexOf">indexOf</a>().</p>
<p>Returns the index position of the first exact match of <i>rx</i> in the list, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
<p>By default, this function is case sensitive.</p>
<p>If an item matched, the <i>rx</i> regular expression will contain the matched objects (see <a href="qregexp.html#matchedLength">QRegExp::matchedLength</a>, <a href="qregexp.html#cap">QRegExp::cap</a>).</p>
<p>This function was introduced in  Qt 4.5.</p>
<p><b>See also </b><a href="qstringlist.html#lastIndexOf">lastIndexOf</a>(), <a href="qstringlist.html#contains">contains</a>(), and <a href="qregexp.html#exactMatch">QRegExp::exactMatch</a>().</p>
<!-- @@@indexOf -->
<!-- $$$indexOf$$$indexOfconstQRegularExpression&int -->
<h3 class="fn" id="indexOf-2"><a name="indexOf-2"></a><span class="type">int</span> QStringList::<span class="name">indexOf</span>(const <span class="type"><a href="qregularexpression.html">QRegularExpression</a></span> &amp;<i>re</i>, <span class="type">int</span> <i>from</i> = 0) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the index position of the first match of <i>re</i> in the list, searching forward from index position <i>from</i>. Returns -1 if no item matched.</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="qstringlist.html#lastIndexOf">lastIndexOf</a>().</p>
<!-- @@@indexOf -->
<!-- $$$join[overload1]$$$joinconstQString& -->
<h3 class="fn" id="join"><a name="join"></a><span class="type"><a href="qstring.html">QString</a></span> QStringList::<span class="name">join</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>separator</i>) const</h3>
<p>Joins all the string list's strings into a single string with each element separated by the given <i>separator</i> (which can be an empty string).</p>
<p><b>See also </b><a href="qstring.html#split">QString::split</a>().</p>
<!-- @@@join -->
<!-- $$$join$$$joinQLatin1String -->
<h3 class="fn" id="join-1"><a name="join-1"></a><span class="type"><a href="qstring.html">QString</a></span> QStringList::<span class="name">join</span>(<span class="type"><a href="qlatin1string.html">QLatin1String</a></span> <i>separator</i>) const</h3>
<p>This function overloads <a href="qstringlist.html#join">join</a>().</p>
<p>This function was introduced in  Qt 5.8.</p>
<!-- @@@join -->
<!-- $$$join$$$joinQChar -->
<h3 class="fn" id="join-2"><a name="join-2"></a><span class="type"><a href="qstring.html">QString</a></span> QStringList::<span class="name">join</span>(<span class="type"><a href="qchar.html">QChar</a></span> <i>separator</i>) const</h3>
<p>This function overloads <a href="qstringlist.html#join">join</a>().</p>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@join -->
<!-- $$$lastIndexOf[overload1]$$$lastIndexOfconstQRegExp&int -->
<h3 class="fn" id="lastIndexOf"><a name="lastIndexOf"></a><span class="type">int</span> QStringList::<span class="name">lastIndexOf</span>(const <span class="type"><a href="qregexp.html">QRegExp</a></span> &amp;<i>rx</i>, <span class="type">int</span> <i>from</i> = -1) const</h3>
<p>Returns the index position of the last exact match of <i>rx</i> in the list, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
<p>By default, this function is case sensitive.</p>
<p><b>See also </b><a href="qstringlist.html#indexOf">indexOf</a>(), <a href="qstringlist.html#contains">contains</a>(), and <a href="qregexp.html#exactMatch">QRegExp::exactMatch</a>().</p>
<!-- @@@lastIndexOf -->
<!-- $$$lastIndexOf$$$lastIndexOfQRegExp&int -->
<h3 class="fn" id="lastIndexOf-1"><a name="lastIndexOf-1"></a><span class="type">int</span> QStringList::<span class="name">lastIndexOf</span>(<span class="type"><a href="qregexp.html">QRegExp</a></span> &amp;<i>rx</i>, <span class="type">int</span> <i>from</i> = -1) const</h3>
<p>This function overloads <a href="qstringlist.html#lastIndexOf">lastIndexOf</a>().</p>
<p>Returns the index position of the last exact match of <i>rx</i> in the list, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
<p>By default, this function is case sensitive.</p>
<p>If an item matched, the <i>rx</i> regular expression will contain the matched objects (see <a href="qregexp.html#matchedLength">QRegExp::matchedLength</a>, <a href="qregexp.html#cap">QRegExp::cap</a>).</p>
<p>This function was introduced in  Qt 4.5.</p>
<p><b>See also </b><a href="qstringlist.html#indexOf">indexOf</a>(), <a href="qstringlist.html#contains">contains</a>(), and <a href="qregexp.html#exactMatch">QRegExp::exactMatch</a>().</p>
<!-- @@@lastIndexOf -->
<!-- $$$lastIndexOf$$$lastIndexOfconstQRegularExpression&int -->
<h3 class="fn" id="lastIndexOf-2"><a name="lastIndexOf-2"></a><span class="type">int</span> QStringList::<span class="name">lastIndexOf</span>(const <span class="type"><a href="qregularexpression.html">QRegularExpression</a></span> &amp;<i>re</i>, <span class="type">int</span> <i>from</i> = -1) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the index position of the last exact match of <i>re</i> in the list, searching backward from index position <i>from</i>. If <i>from</i> is -1 (the default), the search starts at the last item. Returns -1 if no item matched.</p>
<p>This function was introduced in  Qt 5.0.</p>
<p><b>See also </b><a href="qstringlist.html#indexOf">indexOf</a>().</p>
<!-- @@@lastIndexOf -->
<!-- $$$removeDuplicates[overload1]$$$removeDuplicates -->
<h3 class="fn" id="removeDuplicates"><a name="removeDuplicates"></a><span class="type">int</span> QStringList::<span class="name">removeDuplicates</span>()</h3>
<p>This function removes duplicate entries from a list. The entries do not have to be sorted. They will retain their original order.</p>
<p>Returns the number of removed entries.</p>
<p>This function was introduced in  Qt 4.5.</p>
<!-- @@@removeDuplicates -->
<!-- $$$replaceInStrings[overload1]$$$replaceInStringsconstQString&constQString&Qt::CaseSensitivity -->
<h3 class="fn" id="replaceInStrings"><a name="replaceInStrings"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">replaceInStrings</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>before</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>after</i>, <span class="type"><a href="qt.html#CaseSensitivity-enum">Qt::CaseSensitivity</a></span> <i>cs</i> = Qt::CaseSensitive)</h3>
<p>Returns a string list where every string has had the <i>before</i> text replaced with the <i>after</i> text wherever the <i>before</i> text is found. The <i>before</i> text is matched case-sensitively or not depending on the <i>cs</i> flag.</p>
<p>For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;alpha&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;beta&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;gamma&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;epsilon&quot;</span>;
      list<span class="operator">.</span>replaceInStrings(<span class="string">&quot;a&quot;</span><span class="operator">,</span> <span class="string">&quot;o&quot;</span>);
      <span class="comment">// list == [&quot;olpho&quot;, &quot;beto&quot;, &quot;gommo&quot;, &quot;epsilon&quot;]</span>

</pre>
<p><b>See also </b><a href="qstring.html#replace">QString::replace</a>().</p>
<!-- @@@replaceInStrings -->
<!-- $$$replaceInStrings$$$replaceInStringsconstQRegExp&constQString& -->
<h3 class="fn" id="replaceInStrings-1"><a name="replaceInStrings-1"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">replaceInStrings</span>(const <span class="type"><a href="qregexp.html">QRegExp</a></span> &amp;<i>rx</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>after</i>)</h3>
<p>This is an overloaded function.</p>
<p>Replaces every occurrence of the regexp <i>rx</i>, in each of the string lists's strings, with <i>after</i>. Returns a reference to the string list.</p>
<p>For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;alpha&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;beta&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;gamma&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;epsilon&quot;</span>;
      list<span class="operator">.</span>replaceInStrings(<span class="type"><a href="qregexp.html">QRegExp</a></span>(<span class="string">&quot;^a&quot;</span>)<span class="operator">,</span> <span class="string">&quot;o&quot;</span>);
      <span class="comment">// list == [&quot;olpha&quot;, &quot;beta&quot;, &quot;gamma&quot;, &quot;epsilon&quot;]</span>

</pre>
<p>For regular expressions that contain <a href="qregexp.html#capturing-parentheses">capturing parentheses</a>, occurrences of <b>\1</b>, <b>\2</b>, ..&#x2e;, in <i>after</i> are replaced with <i>rx</i>.cap(1), <i>rx</i>.cap(2), ..&#x2e;</p>
<p>For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Bill Clinton&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Murray, Bill&quot;</span>;
      list<span class="operator">.</span>replaceInStrings(<span class="type"><a href="qregexp.html">QRegExp</a></span>(<span class="string">&quot;^(.*), (.*)$&quot;</span>)<span class="operator">,</span> <span class="string">&quot;\\2 \\1&quot;</span>);
      <span class="comment">// list == [&quot;Bill Clinton&quot;, &quot;Bill Murray&quot;]</span>

</pre>
<!-- @@@replaceInStrings -->
<!-- $$$replaceInStrings$$$replaceInStringsconstQRegularExpression&constQString& -->
<h3 class="fn" id="replaceInStrings-2"><a name="replaceInStrings-2"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">replaceInStrings</span>(const <span class="type"><a href="qregularexpression.html">QRegularExpression</a></span> &amp;<i>re</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>after</i>)</h3>
<p>This is an overloaded function.</p>
<p>Replaces every occurrence of the regular expression <i>re</i>, in each of the string lists's strings, with <i>after</i>. Returns a reference to the string list.</p>
<p>For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;alpha&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;beta&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;gamma&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;epsilon&quot;</span>;
      list<span class="operator">.</span>replaceInStrings(<span class="type"><a href="qregularexpression.html">QRegularExpression</a></span>(<span class="string">&quot;^a&quot;</span>)<span class="operator">,</span> <span class="string">&quot;o&quot;</span>);
      <span class="comment">// list == [&quot;olpha&quot;, &quot;beta&quot;, &quot;gamma&quot;, &quot;epsilon&quot;]</span>

</pre>
<p>For regular expressions that contain capturing groups, occurrences of <b>\1</b>, <b>\2</b>, ..&#x2e;, in <i>after</i> are replaced with the string captured by the corresponding capturing group.</p>
<p>For example:</p>
<pre class="cpp">

      <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> list;
      list <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Bill Clinton&quot;</span> <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="string">&quot;Murray, Bill&quot;</span>;
      list<span class="operator">.</span>replaceInStrings(<span class="type"><a href="qregularexpression.html">QRegularExpression</a></span>(<span class="string">&quot;^(.*), (.*)$&quot;</span>)<span class="operator">,</span> <span class="string">&quot;\\2 \\1&quot;</span>);
      <span class="comment">// list == [&quot;Bill Clinton&quot;, &quot;Bill Murray&quot;]</span>

</pre>
<p>This function was introduced in  Qt 5.0.</p>
<!-- @@@replaceInStrings -->
<!-- $$$sort[overload1]$$$sortQt::CaseSensitivity -->
<h3 class="fn" id="sort"><a name="sort"></a><span class="type">void</span> QStringList::<span class="name">sort</span>(<span class="type"><a href="qt.html#CaseSensitivity-enum">Qt::CaseSensitivity</a></span> <i>cs</i> = Qt::CaseSensitive)</h3>
<p>Sorts the list of strings in ascending order. If <i>cs</i> is <a href="qt.html#CaseSensitivity-enum">Qt::CaseSensitive</a> (the default), the string comparison is case sensitive; otherwise the comparison is case insensitive.</p>
<p>Sorting is performed using the STL's std::sort() algorithm, which averages <a href="containers.html#linear-logarithmic-time">linear-logarithmic time</a>, i.e&#x2e; O(<i>n</i> log <i>n</i>).</p>
<p>If you want to sort your strings in an arbitrary order, consider using the <a href="qmap.html">QMap</a> class. For example, you could use a <a href="qmap.html">QMap</a>&lt;<a href="qstring.html">QString</a>, <a href="qstring.html">QString</a>&gt; to create a case-insensitive ordering (e.g&#x2e; with the keys being lower-case versions of the strings, and the values being the strings), or a <a href="qmap.html">QMap</a>&lt;int, <a href="qstring.html">QString</a>&gt; to sort the strings by some integer index.</p>
<!-- @@@sort -->
<!-- $$$operator+[overload1]$$$operator+constQStringList& -->
<h3 class="fn" id="operator-2b"><a name="operator-2b"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> QStringList::<span class="name">operator+</span>(const <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;<i>other</i>) const</h3>
<p>Returns a string list that is the concatenation of this string list with the <i>other</i> string list.</p>
<p><b>See also </b><a href="qlist.html#append">append</a>().</p>
<!-- @@@operator+ -->
<!-- $$$operator<<[overload1]$$$operator<<constQString& -->
<h3 class="fn" id="operator-lt-lt"><a name="operator-lt-lt"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">operator&lt;&lt;</span>(const <span class="type"><a href="qstring.html">QString</a></span> &amp;<i>str</i>)</h3>
<p>Appends the given string, <i>str</i>, to this string list and returns a reference to the string list.</p>
<p><b>See also </b><a href="qlist.html#append">append</a>().</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constQStringList& -->
<h3 class="fn" id="operator-lt-lt-1"><a name="operator-lt-lt-1"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">operator&lt;&lt;</span>(const <span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;<i>other</i>)</h3>
<p>This is an overloaded function.</p>
<p>Appends the <i>other</i> string list to the string list and returns a reference to the latter string list.</p>
<!-- @@@operator<< -->
<!-- $$$operator<<$$$operator<<constQList<QString>& -->
<h3 class="fn" id="operator-lt-lt-2"><a name="operator-lt-lt-2"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">operator&lt;&lt;</span>(const <span class="type"><a href="qlist.html#QList">QList</a></span>&lt;<span class="type"><a href="qstring.html">QString</a></span>&gt; &amp;<i>other</i>)</h3>
<p>This is an overloaded function.</p>
<p>Appends the <i>other</i> string list to the string list and returns a reference to the latter string list.</p>
<p>This function was introduced in  Qt 5.4.</p>
<!-- @@@operator<< -->
<!-- $$$operator=[overload1]$$$operator=constQList<QString>& -->
<h3 class="fn" id="operator-eq"><a name="operator-eq"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">operator=</span>(const <span class="type"><a href="qlist.html#QList">QList</a></span>&lt;<span class="type"><a href="qstring.html">QString</a></span>&gt; &amp;<i>other</i>)</h3>
<p>Copy assignment operator from <a href="qlist.html">QList</a>&lt;<a href="qstring.html">QString</a>&gt;. Assigns the <i>other</i> list of strings to this string list.</p>
<p>After the operation, <i>other</i> and <code>*this</code> will be equal.</p>
<p>This function was introduced in  Qt 5.4.</p>
<!-- @@@operator= -->
<!-- $$$operator=$$$operator=QList<QString>&& -->
<h3 class="fn" id="operator-eq-1"><a name="operator-eq-1"></a><span class="type"><a href="qstringlist.html#QStringList">QStringList</a></span> &amp;QStringList::<span class="name">operator=</span>(<span class="type"><a href="qlist.html#QList">QList</a></span>&lt;<span class="type"><a href="qstring.html">QString</a></span>&gt; &amp;&amp;<i>other</i>)</h3>
<p>This is an overloaded function.</p>
<p>Move assignment operator from <a href="qlist.html">QList</a>&lt;<a href="qstring.html">QString</a>&gt;. Moves the <i>other</i> list of strings to this string list.</p>
<p>After the operation, <i>other</i> will be empty.</p>
<p>This function was introduced in  Qt 5.4.</p>
<!-- @@@operator= -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$QMutableStringListIterator -->
<h3 class="fn" id="QMutableStringListIterator-typedef"><a name="QMutableStringListIterator-typedef"></a>typedef <span class="name">QMutableStringListIterator</span></h3>
<p>The <a href="qstringlist.html#QStringListIterator-typedef">QStringListIterator</a> type definition provides a Java-style non-const iterator for <a href="qstringlist.html">QStringList</a>.</p>
<p><a href="qstringlist.html">QStringList</a> provides both <a href="containers.html#java-style-iterators">Java-style iterators</a> and <a href="containers.html#stl-style-iterators">STL-style iterators</a>. The Java-style non-const iterator is simply a type definition for <a href="qmutablelistiterator.html">QMutableListIterator</a>&lt;<a href="qstring.html">QString</a>&gt;.</p>
<p><b>See also </b><a href="qstringlist.html#QStringListIterator-typedef">QStringListIterator</a> and <a href="qlist-iterator.html">QStringList::iterator</a>.</p>
<!-- @@@QMutableStringListIterator -->
<!-- $$$QStringListIterator -->
<h3 class="fn" id="QStringListIterator-typedef"><a name="QStringListIterator-typedef"></a>typedef <span class="name">QStringListIterator</span></h3>
<p>The QStringListIterator type definition provides a Java-style const iterator for <a href="qstringlist.html">QStringList</a>.</p>
<p><a href="qstringlist.html">QStringList</a> provides both <a href="containers.html#java-style-iterators">Java-style iterators</a> and <a href="containers.html#stl-style-iterators">STL-style iterators</a>. The Java-style const iterator is simply a type definition for <a href="qlistiterator.html">QListIterator</a>&lt;<a href="qstring.html">QString</a>&gt;.</p>
<p><b>See also </b><a href="qstringlist.html#QMutableStringListIterator-typedef">QMutableStringListIterator</a> and <a href="qlist-const-iterator.html">QStringList::const_iterator</a>.</p>
<!-- @@@QStringListIterator -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>