From 5d4a457a636aad6693a20c71a38db02a4db4a3e9 Mon Sep 17 00:00:00 2001 From: zcy <290198252@qq.com> Date: Tue, 3 Oct 2023 22:41:15 +0800 Subject: [PATCH] no message --- mainwindow.ui | 2 +- readme.md | 23 +++++++++++++++++++++++ subform.cpp | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 readme.md diff --git a/mainwindow.ui b/mainwindow.ui index 1d93aa9..dfa56ba 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -11,7 +11,7 @@ - modbus rtu monitor + 又一个modbus调试工具 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..d5eb604 --- /dev/null +++ b/readme.md @@ -0,0 +1,23 @@ +#### 又一个modbus调试工具 +特点: +- 基于QT5 +- 基于libmodbus +- 完全开源,代码量少 +- 三方库完全跨平台,linux/windows。 + +#### 功能: +本软件旨在提供一个简单modbus测试工具。 + +##### 寄存器监控功能 + +1. +2. 返回值导出 +3. 绘图 + +[![image.png](https://www.testingcloud.club/sapi/api/image_download/203b900b-61fa-11ee-8ba6-525400797f57.png)](界面) + + +#### todo + +1. 主界面配置化,退出后可以保留 +2. \ No newline at end of file diff --git a/subform.cpp b/subform.cpp index 0429c92..a66f895 100644 --- a/subform.cpp +++ b/subform.cpp @@ -24,7 +24,7 @@ SubForm::SubForm(QString addr,int baurate,int device_addr) QString *com = new QString(addr); qDebug()<<*com; mModel = new QStandardItemModel(this); - mModel->setHorizontalHeaderLabels(QStringList() << "Ĵַ" << "ֵ"<<"ȡʱ"); + mModel->setHorizontalHeaderLabels(QStringList() << "Ĵַ" << "ֵ"<<"ȡʱ"<<""); ui->tableView->setModel(mModel); ui->tableView->setSelectionMode(QAbstractItemView::ContiguousSelection); ui->tableView->setSelectionBehavior(QAbstractItemView::SelectRows);