Use QSerialPort to read button and encoder data from serial port