目标程序运行界面,
1.新建Qwiget工程,工程文件如下,
#-------------------------------------------------
#
# Project created by QtCreator 2022-09-28T14:53:02
#
#-------------------------------------------------
QT += core gui
QT += serialbus serialport
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = ModbusExample001
TEMPLATE = app
# The following define makes your compiler emit warnings if you use
# a