title: Qt serial port does not read the string well
body: <p>I use Qt 5.4 on Ubuntu Gnome 14.04 LTS to reads a string line from serial port. Everything was OK, but when I re-installed Ubuntu Gnome 14.04 and Qt 5.4, my code of serial port does not work well. When the Arduino send "0" the code of Qt reads it like this "�" and the other numbers that sends over serial the Qt reads it as a letters and symbols. I think the problem with unicode of my Qt. The unicode of my ubuntu is en.US.UTF-8 and the QT unicode is setted to "system". Please help me :(
  This is my code that read the data from serial port:</p>
  
  <pre><code>    QByteArray input;    
  if (serial-&gt;canReadLine())    //chect if data line is ready
       input.clear();
     input = serial-&gt;readLine(); //read data line from sreial port
     ui-&gt;label-&gt;setText(input);
     qDebug ()&lt;&lt;input&lt;&lt;endl;
  </code></pre>
  
  <p>this code of Arduino it is working fine with CuteCom and Arduino serial monitor</p>
  
  <pre><code>    const int analogInPin = A0; 
  
  
  unsigned int sensorValue = 0;        // value read from the pot
  
  
  void setup() {
  
    Serial.begin(19200);
  }
  
  void loop() {
    Serial.print("\n");
    Serial.print("#");
    for (int i=0; i &lt; 5; i++) {
    // read the analog in value:
    sensorValue = analogRead(analogInPin);
  
    Serial.print(sensorValue);
    Serial.print("#");
  
  };
    sensorValue = analogRead(analogInPin);
    Serial.print(sensorValue);
    Serial.print("# \n");  
  }
  </code></pre>
  
  <p>Sorry for my English</p>