Giter Site home page Giter Site logo

htychat's Introduction

Qt 海天鹰聊天 1.0 Alpha

Linux 平台基于 Qt + MYSQL 的聊天程序。
已编译好的 HTYChat 程序适用 64 位 Linux 系统 Qt5 环境,双击运行,其他版本请自行编译。

注册

alt
注意:密码现在还未加密,请勿使用常用密码!

登录

alt

联系人

alt

聊天

alt

依赖:

Qt5 安装 MYSQL 插件:sudo apt-get install libqt5sql5-mysql

如何修改服务器地址:

如果想使用自定义 MYSQL 服务器,新建数据库并执行:

create table if not exists user(id INT, name TEXT, signature TEXT, password TEXT, memo TEXT, homepage TEXT, domicile TEXT, email TEXT, regtime DATETIME, birthday DATE, avantar TEXT, phonenumber INT, sex TEXT)

并修改源码 mainwindow.cpp 的 23-30 行

db.setHostName("服务器地址");
db.setUserName("用户名");
db.setPassword("密码");
db.setDatabaseName("数据库名");

已知问题:

因为从数据库读消息,需要通过发消息或者点击消息记录更新,人多的话数据库可能会读写死,未来可能采用点对点模式替代。
只能发文字,不能发图片。
修改资料后无法立即更新主面板资料,下次登录才能更新资料。

htychat's People

Contributors

sonichy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.