# cpp-qt-manageSystem
## 基于C++和qt的超市商品管理系统
wtu 计科21级面向对象课程设计
### 一 简要介绍
1.本项目为面向对象程序设计的大作业,基于Qt creator进行开发,Qt框架版本6.4.1,编译环境MINGW 11.2.0。
2.项目结构简介:关于系统逻辑部分的代码的头文件在head文件夹中,源文件在s文件夹中。与图形界面相关的代码在项目头文件和源文件的文件夹内。
应用程序内使用的一些图片、动图在rc文件夹内。
3.UML类图:
![image](https://user-images.githubusercontent.com/62981633/210293721-0eb891fa-3d48-40a9-a200-b0c28bec0b27.png)
### 二 使用方式
1.可下载源码使用Qt creator进行构建后运行
2.若无Qt环境,可以直接下载Releases版本运行,无需任何依赖。若需要测试用例,可将文件夹内的测试数据文件夹内的文件移动至可执行程序目录中。
若不移动,则系统无初始数据,需要输入初始密码。
### 三 运行截图
#### 登录界面
![image](https://user-images.githubusercontent.com/62981633/210294033-f7e02c26-da1d-4c05-9e13-3b8331364956.png)
#### 商品信息输入窗口
![image](https://user-images.githubusercontent.com/62981633/210294299-c2056e56-7a04-4214-9b72-13dcb360a7a3.png)
#### 主界面
![image](https://user-images.githubusercontent.com/62981633/210294056-8ddd168e-9bab-4ce7-9e53-55e0298c30e8.png)
#### 库存商品页面
![捕获](https://user-images.githubusercontent.com/62981633/210294159-a906ff7b-1eb8-4c30-a6a3-d9e0d3c13546.PNG)
#### 销售统计
![捕获1](https://user-images.githubusercontent.com/62981633/210294246-6fa44107-65e4-4e38-b881-617fff50bad4.PNG)
#### 收银台界面
![捕获3](https://user-images.githubusercontent.com/62981633/210294373-2b68c470-4253-4441-945f-b9959dc34785.PNG)