diff --git a/LibManagementSystem/communication_module.cpp b/LibManagementSystem/communication_module.cpp index 61be5e331926272c8fbacc7802178e1249c50492..63a327406cd486270d42b9d398093c6ea8181e7d 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 7356a9c51e66f24f607425c20f5e07777c095ba2..cbaf8e88d47fe548dcfdce92bb94b10e35a690ef 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;