title: PushBack (push_back()) elements of QStringList to vector<string>
body: <p>How can I access elements of <code>QStringList</code> in a <code>vector&lt;string&gt;</code> type. <code>push_back</code> doesn't work. <code>insert</code>ing too needs another <code>vector</code> type only.</p>
  
  <pre><code>#include &lt;QtCore/QCoreApplication&gt;
  #include &lt;QDebug&gt;
  #include &lt;QStringList&gt;
  #include &lt;vector&gt;
  #include &lt;iostream&gt;
  
  using namespace std;
  
  int main(int argc, char *argv[])
  {
          QCoreApplication a(argc, argv);
          std::vector&lt;string&gt; vec;
          QString winter = "December, January, February";
          QString spring = "March, April, May";
          QString summer = "June, July, August";
          QString fall = "September, October, November";
          QStringList list;
          list &lt;&lt; winter;
          list += spring;
          list.append(summer);
          list &lt;&lt; fall;
          qDebug() &lt;&lt; "The Spring months are: " &lt;&lt; list[1] ;
          qDebug() &lt;&lt; list.size();
  
          for(int i=0;i&lt;list.size();i++)
          {
          //vec.push_back(list[i]);
          }
          exit(0);
          return a.exec();
  }
  </code></pre>