Skip to content

Commit 37fa0a3

Browse files
增加仿造微信聊天功能
1 parent a3c6a82 commit 37fa0a3

File tree

149 files changed

+22647
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

149 files changed

+22647
-0
lines changed

qt_wecom/.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# C++ objects and libs
2+
*.slo
3+
*.lo
4+
*.o
5+
*.a
6+
*.la
7+
*.lai
8+
*.so
9+
*.dll
10+
*.dylib
11+
12+
# Qt-es
13+
object_script.*.Release
14+
object_script.*.Debug
15+
*_plugin_import.cpp
16+
/.qmake.cache
17+
/.qmake.stash
18+
*.pro.user
19+
*.pro.user.*
20+
*.qbs.user
21+
*.qbs.user.*
22+
*.moc
23+
moc_*.cpp
24+
moc_*.h
25+
qrc_*.cpp
26+
ui_*.h
27+
*.qmlc
28+
*.jsc
29+
Makefile*
30+
*build-*
31+
32+
# Qt unit tests
33+
target_wrapper.*
34+
35+
# QtCreator
36+
*.autosave
37+
38+
# QtCreator Qml
39+
*.qmlproject.user
40+
*.qmlproject.user.*
41+
42+
# QtCreator CMake
43+
CMakeLists.txt.user*
44+
45+
bin
46+
debug
47+
release
48+
ui_*.h
49+
Makefile*
50+
*.pro.user
51+
*.obj
52+
*.lib
53+
*.Debug
54+
*.Release
55+
*.~vsdx
56+
*.txt
57+
*.pdb

qt_wecom/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 阿木大叔
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

qt_wecom/README.md

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
# WeCom_copy
2+
3+
# 📚简介
4+
本项目为Qt实现企业微信界面项目,纯界面逻辑,不包含真实业务逻辑。主要用于学习QWidget的使用,包含绘制,布局,信号,事件,重写,多线程,qss等技术使用。
5+
[![star](https://gitee.com/hudejie/wecom-copy/badge/star.svg?theme=dark)](https://gitee.com/hudejie/wecom-copy)
6+
7+
# 💾体验程序
8+
- [安装包地址](https://gitee.com/hudejie/wecom-copy/raw/master/setup/Setup.exe)
9+
10+
# 📦软件架构
11+
- Qt 5.9 + msvc 2015
12+
- Windows(x32, x64)/Linux(x32, x64)
13+
14+
# 🛠️主要技术
15+
16+
17+
| 模块 | 介绍 |
18+
| -------------------|---------------------------------------------------------------------------------- |
19+
| qss | 样式表,本程序所有窗体、控件的样式都由qss设计 |
20+
| signal\slot | 控件、窗体间通信,事件处理 |
21+
| QThread | 异步处理 |
22+
| QNetworkAccessManager| 网络请求,主要用于聊天机器人及实时天气获取 |
23+
| QPainter | 部分窗口的绘制,例如实时天气界面 |
24+
| iconfont | 阿里巴巴矢量图标库,主要用于按钮及标签上图标等显示 |
25+
| webenginewidgets | 实现嵌入html,主要用于聊天界面 |
26+
| webchannel | 和js进行通信,用于聊天界面交互 |
27+
28+
# 🗺️软件截图
29+
30+
### 导航
31+
![导航](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/导航.gif)
32+
33+
### 基础框架
34+
![基础框架](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/基础框架.gif)
35+
36+
### 用户详情
37+
![用户详情](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/用户详情.png)
38+
39+
### 好友列表
40+
![好友列表](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/好友列表.gif)
41+
42+
### 模拟登录
43+
![模拟登录](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/模拟登录.gif)
44+
45+
### 聊天对话框
46+
![聊天对话框](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/聊天对话框.gif)
47+
48+
### 聊天界面
49+
![聊天界面](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/聊天界面.gif)
50+
51+
### 智能机器人
52+
![智能机器人](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/智能机器人.gif)
53+
54+
### 天气预报
55+
![天气预报](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/天气预报.gif)
56+
57+
### 自绘时钟
58+
![自绘时钟](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/自绘时钟.gif)
59+
60+
### iconfont图标展示
61+
![iconfont](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/iconfont.gif)
62+
63+
### 逗逗猫(小猫眼睛随着鼠标位置转动)
64+
![逗逗猫](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/%E9%80%97%E9%80%97%E7%8C%AB.gif)
65+
66+
### 组件
67+
#### 通知提醒框
68+
![通知提醒框](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/组件_通知提醒框.gif)
69+
70+
#### 气泡确认框
71+
![气泡确认框](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/组件_气泡确认框.gif)
72+
73+
#### 滑动输入条
74+
![滑动输入条](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/组件_滑动输入条.gif)
75+
76+
### 动态主页
77+
![动态主页](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/动态主页.gif)
78+
![动态主页](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/主页.jpg)
79+
80+
### ECharts表格
81+
![ECharts表格](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/Echarts.gif)
82+
83+
### 轮播图
84+
![轮播图](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/轮播图.gif)
85+
86+
### 背景音乐(别撸代码了,听听歌吧)
87+
![背景音乐](https://gitee.com/hudejie/wecom-copy/raw/master/screenshot/背景音乐.gif)
88+
89+
90+
# 📝参考网址
91+
92+
#### [📗qt官网](https://doc.qt.io/)
93+
94+
#### [📘QTCN开发网](http://www.qtcn.org)
95+
96+
#### [📙飞扬青云](https://gitee.com/feiyangqingyun)
97+
98+
#### [📙ECharts](https://echarts.apache.org/zh/index.html)
99+
100+
# 📌CSDN
101+
102+
#### [🎉欢迎关注CSDN](https://blog.csdn.net/qq_25549309)
103+
104+
# 🧡Star
105+
106+
#### 如果你觉得项目用来学习不错,可以给项目点点star,谢谢。

qt_wecom/WeComCopy.pro

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
#-------------------------------------------------
2+
#
3+
# Project created by QtCreator 2021-05-20T14:15:42
4+
#
5+
#-------------------------------------------------
6+
7+
QT += core gui
8+
QT += webenginewidgets webchannel
9+
QT += multimedia
10+
11+
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
12+
13+
CONFIG += warn_off
14+
15+
TARGET = WeComCopy
16+
TEMPLATE = app
17+
DESTDIR = bin
18+
19+
unix:UI_DIR = ../tmp/ui
20+
win32:UI_DIR = tmp/ui
21+
22+
INCLUDEPATH += include
23+
24+
SOURCES += source/main.cpp\
25+
source/wecomwnd.cpp \
26+
source/navpane.cpp \
27+
source/pushbuttonex.cpp \
28+
source/iconhelper.cpp \
29+
source/appinit.cpp \
30+
source/userdetaildlg.cpp \
31+
source/basedlg.cpp \
32+
source/logindlg.cpp \
33+
source/friendslist.cpp \
34+
source/msgpane.cpp \
35+
source/chattoptoolbar.cpp \
36+
source/msgqueue.cpp \
37+
source/contactspane.cpp \
38+
source/weatherpane.cpp \
39+
source/clockpane.cpp \
40+
source/incofontpane.cpp \
41+
source/tipwidget.cpp \
42+
source/catpane.cpp \
43+
source/navigationbar.cpp \
44+
source/notificationpane.cpp \
45+
source/component.cpp \
46+
source/popconfirm.cpp \
47+
source/slider.cpp \
48+
source/dynamiccard.cpp \
49+
source/datamgrpane.cpp \
50+
source/userpane.cpp \
51+
source/boderpane.cpp \
52+
source/userprofiles.cpp \
53+
source/appreciatedlg.cpp \
54+
source/carouselpane.cpp
55+
56+
HEADERS += include/wecomwnd.h \
57+
include/navpane.h \
58+
include/pushbuttonex.h \
59+
include/iconhelper.h \
60+
include/appinit.h \
61+
include/userdetaildlg.h \
62+
include/public.h \
63+
include/basedlg.h \
64+
include/logindlg.h \
65+
include/friendslist.h \
66+
include/msgpane.h \
67+
include/chattoptoolbar.h \
68+
include/msgqueue.h \
69+
include/contactspane.h \
70+
include/weatherpane.h \
71+
include/clockpane.h \
72+
include/incofontpane.h \
73+
include/tipwidget.h \
74+
include/catpane.h \
75+
include/navigationbar.h \
76+
include/notificationpane.h \
77+
include/component.h \
78+
include/popconfirm.h \
79+
include/slider.h \
80+
include/dynamiccard.h \
81+
include/datamgrpane.h \
82+
include/userpane.h \
83+
include/boderpane.h \
84+
include/userprofiles.h \
85+
include/appreciatedlg.h \
86+
include/carouselpane.h
87+
88+
FORMS += ui/wecomwnd.ui \
89+
ui/userprofiles.ui \
90+
ui/appreciatedlg.ui
91+
92+
RESOURCES += \
93+
res/wecomcopy.qrc
94+
95+
RC_FILE += \
96+
res/WeComCopy.rc

qt_wecom/include/appinit.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#ifndef APPINIT_H
2+
#define APPINIT_H
3+
4+
#include <QObject>
5+
6+
class AppInit : public QObject
7+
{
8+
Q_OBJECT
9+
public:
10+
static AppInit *Instance();
11+
explicit AppInit(QObject *parent = 0);
12+
13+
void start();
14+
15+
protected:
16+
bool eventFilter(QObject *obj, QEvent *evt);
17+
18+
private:
19+
static AppInit *self;
20+
21+
signals:
22+
23+
public slots:
24+
};
25+
26+
#endif // APPINIT_H

qt_wecom/include/appreciatedlg.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#ifndef APPRECIATEDLG_H
2+
#define APPRECIATEDLG_H
3+
4+
#include <QWidget>
5+
#include "basedlg.h"
6+
7+
namespace Ui {
8+
class AppreciateDlg;
9+
}
10+
11+
class AppreciateDlg : public CBaseDlg
12+
{
13+
Q_OBJECT
14+
15+
public:
16+
explicit AppreciateDlg(QWidget *parent = 0);
17+
~AppreciateDlg();
18+
19+
private:
20+
void CreateAllChildWnd();
21+
void InitCtrl();
22+
void Relayout();
23+
24+
private:
25+
Ui::AppreciateDlg *ui;
26+
};
27+
28+
#endif // APPRECIATEDLG_H

0 commit comments

Comments
 (0)