title: Split the data with '\n' character in qt
body: <p>I have  String  and I need to split this to new line after every <code>\n</code> . Which is done successfully in following code:</p>
  
  <pre><code>  #include &lt;iostream&gt;
    #include &lt;QtCore&gt;
  
    int main(int argc, char ** argv)
     {
          QString myString("diskinfo: Node,Description,FreeSpace,Name,Size  \nASHUTOSH-PC,Local Fixed Disk,420935663616,C:,499875049472  \nASHUTOSH-PC,CD-ROM Disc,,D:,  \nASHUTOSH-PC,Local Fixed Disk,324989792256,E:,487687450624  \nASHUTOSH-PC,CD-ROM Disc,0,F:,553459712");
  
          QStringList myStringList = myString.split("\n");
  
  
         for(int index =0;index &lt; myStringList.length();index++)
             {
               std::cout&lt;&lt;myStringList.at(index).toStdString()&lt;&lt;std::endl;
             }
          }
  </code></pre>
  
  <p>Output of above code is :</p>
  
  <pre><code>    Node,Description,FreeSpace,Name,Size
      OSH-PC,Local Fixed Disk,420942745600,C:,499875049472
      OSH-PC,CD-ROM Disc,,D:,
      OSH-PC,Local Fixed Disk,324861591552,E:,487687450624
      OSH-PC,CD-ROM Disc,0,F:,553459712
  </code></pre>
  
  <p>Now Next thing I want to do is :</p>
  
  <p>Get the Following output how can it be done:</p>
  
  <pre><code>   Node: OSH-PC Description:Local Fixed Disk, FreeSpace:420942745600, Name:C:,size:499875049472
     Node: OSH-PC Description:CD-ROM, FreeSpace:, Name:D:,size:,
  </code></pre>
  
  <p>How is this possible in Qt c++?</p>