Qt prepared serial communication program, there is the original code for your reference