# chatroom **Repository Path**: cocolijz_admin/chatroom ## Basic Information - **Project Name**: chatroom - **Description**: 简易Qt局域网聊天室 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-11-12 - **Last Updated**: 2022-11-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 介绍 简易Qt局域网聊天室 # 快速启动 之前是用VS2015+Qt5.8开发的,现在改成了直接使用QtCreator开发,Qt5.8下载地址推荐:[点击跳转到下载地址](http://qtmirror.ics.com/pub/qtproject/archive/qt/5.8/5.8.0/),然后选择“qt-opensource-windows-x86-mingw530-5.8.0.exe”这个带有MinGW的下载,如果选择 msvc2013-5.8.0.exe 或 msvc2015-5.8.0.exe 这些的话会出现问题。安装的时候在选择组件要选Qt5.8下面的MinGW 5.3.0 xxx 和 Tools下面的MinGW 5.3.0 - 将 doc/mysql连接器/libmysql.dll 放到Qt5.8.0\5.8\mingw53_32\bin目录下 - 在服务器和客户端都加上socket和sql模块:QT += core gui network sql - 新建数据库:chatroom。执行userinfo.sql数据库文件 # 程序演示 ## 客户端 ![客户端-登录界面](./doc/客户端-登录界面.png) ![客户端-注册界面](./doc/客户端-注册界面.png) ![客户端-聊天界面](./doc/客户端-聊天界面.png) ## 服务器 ![服务器](./doc/服务器.png) # 程序发布 - 使用release构建,将.exe文件放在一个文件目录 - 打开Qt 5.8 for Desktop (MinGW 5.3.0 32 bit)运行:windeployqt xxx.exe