I have a function start() that creates a thread that reads data from serial, and a QTimer every x ms that performs real time plotting based on the serial data.
start()