QCustomPlot Discussion and Comments

QByteArray add to AddDataReturn to overview

hello how i can add QByteArray from serialport to AddData function a viev on graph?

  QByteArray data = serial->readAll();

You will need to parse/interpret your QByteArray, turn it into according double values, and then pass it to addData.
The format of your QByteArray you must know beforehand, i.e. by looking at the specification of the serial device you are communicating with. Possibly it's just an ASCII string like "> 1.234", which you'd need to parse and convert to double.