From c73fec5f9432bad44463872faa0e88603dc53fc8 Mon Sep 17 00:00:00 2001 From: McDj26 <2645370670@qq.com> Date: Mon, 26 Dec 2022 22:21:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E4=BF=A1=E4=B8=AD?= =?UTF-8?q?=E5=A4=9A=E6=AC=A1=E5=8F=91=E9=80=81=E6=97=B6=E5=B0=B1=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E4=B8=A5=E9=87=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LibManagementSystem/communication_module.cpp | 2 +- LibManagementSystem/mainwindow.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/LibManagementSystem/communication_module.cpp b/LibManagementSystem/communication_module.cpp index 61be5e3..63a3274 100644 --- a/LibManagementSystem/communication_module.cpp +++ b/LibManagementSystem/communication_module.cpp @@ -141,7 +141,7 @@ void communication_module::receiveMsg() else cur_size=size_dat.toInt(); start=_msg.indexOf(stopChar) + 1; - received_msg += _msg.sliced(start,_msgSize - start); + received_msg += _msg.sliced(start,_msgSize - start - 1); emit process_update(20+int(60*float(cur_size)/float(totalsize))); diff --git a/LibManagementSystem/mainwindow.cpp b/LibManagementSystem/mainwindow.cpp index 7356a9c..cbaf8e8 100644 --- a/LibManagementSystem/mainwindow.cpp +++ b/LibManagementSystem/mainwindow.cpp @@ -7,6 +7,7 @@ MainWindow::MainWindow(QWidget *parent) { ui->setupUi(this); this->setFixedSize(800,600); + this->setWindowTitle("图书管理系统"); //创建图片名称->图片指针映射哈希表 pixmap=new QHash; -- Gitee