title: QT C++ How can I parse the data sent from the serial port?
body: <p>I am trying to read ID over serial port. When I send my <code>WT+12300</code> command via serial port. I am getting ID data. But it comes all the time and it doesn't come as parsed. <code>&quot;WT+,ID,2,3,4,5,6,ASDSA,1,\r\nWT+,ID,2,3,4,5,6,ASDSA,1,\r\nWT+,ID,2, I get it as 3,4,5,6,ASDSA,1,\r\n...</code> and it keeps going. I just want to take the ASDSA part and display it with a qlabel. How can I do that?
  here is function</p>
  <pre><code>void productDetail::on_pushButton_clicked()
  {
  
      if (serial.begin(QString(&quot;COM6&quot;), 9600, 8, 0, 1, 0, false)  )
      {
          QString sendWC= &quot;WR+11300&quot;;
          serial.send(sendWC);
          QString serialID = serial.getString();
          serialID = serialID.simplified();
          ui-&gt;idLabel-&gt;setText(serialID);
          qDebug()&lt;&lt; serialID;    
       }
  </code></pre>