登录
首页 » 套接字网络编程 » 基于Qt的局域网聊天系统

基于Qt的局域网聊天系统

于 2022-01-25 发布 文件大小:20.53 kB
0 223
下载积分: 2 下载次数: 1

代码说明:

应用背景基于Qt的局域网聊天系统,实现了局域网聊天,文件传输,更改字体,保存聊天记录等功能,对于研究Qt,研究局域网通信具有较强学习价值。关键技术udpSocket = new QUdpSocket(this); port = 45454; udpSocket->bind(port, QUdpSocket::ShareAddress | QUdpSocket::ReuseAddressHint); connect(udpSocket, SIGNAL(readyRead()), this, SLOT(processPendingDatagrams())); sendMessage(NewParticipant); server = new TcpServer(this); connect(server, SIGNAL(sendFileName(QString)), this, SLOT(getFileName(QString))); connect(ui->messageTextEdit, SIGNAL(currentCharFormatChanged(QTextCharFormat)), this, SLOT(currentFormatChanged(const QTextCharFormat)));

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • qt图像传输的简单例子
    该代码演示了,如何利用QTcpSocket QTcpServer进行网络通信;如何从服务器端获取图像数据,在网间传输图像,最后在客户端接收,并显示。代码的重点在于,它演示了一个基本的流程,涉及到的也只是最粗浅的内容,如果有兴趣的朋友,可以更好完善它,包括界面和功能部分。对刚接触这一块的同学,这个代码可以上手很快,有了印象之后再深入就好办了。
    2023-07-09 21:30:05下载
    积分:1
  • RFC2616 (Http protocol). PDF format. What is needed to download their own.
    RFC2616(Http协议).PDF格式的.需要的自己下载.-RFC2616 (Http protocol). PDF format. What is needed to download their own.
    2023-03-05 16:25:04下载
    积分:1
  • TC programming language simple telephone dialing
    TC语言编程简单的电话拨号功能-TC programming language simple telephone dialing
    2023-08-02 09:40:03下载
    积分:1
  • 有一些论坛有特殊需要,只有使用中文注册,注册…
    有一些论坛有特殊需要,只准使用中文注册,避免使用英文注册,就可以使用这个插件了。-some forum with special needs, and only the use of Chinese registration, registration to avoid the use of English, they can use the plug-in the.
    2022-03-24 13:33:04下载
    积分:1
  • jsp精彩实例,不用多说了,下吧,学习的好助手 
    jsp精彩实例,不用多说了,下吧,学习的好助手 -jsp wonderful examples Needless to say, are you, a good learning Help
    2023-06-10 20:45:11下载
    积分:1
  • 这是一本很经典的的书籍,希望对大家有所帮助
    这是一本很经典的网络编程的书籍,希望对大家有所帮助 -This is a very classic network programming books, and they hope to help everyone
    2022-04-23 19:19:38下载
    积分:1
  • black Streamer completely soft Guide Directory
    黑软教程流光完全教程-black Streamer completely soft Guide Directory
    2022-01-30 13:32:15下载
    积分:1
  • 用WinSocket创建客户机服务器
    用WinSocket创建客户机服务器--UDP,为了写这个程序,花了我好长时间,无奈水平有限,是初学,请多指教-Winsocket used to create client-server-- UDP, in order to write this procedure, I spent a good long time, the limited level of frustration is beginner, please enlighten
    2022-07-13 12:12:39下载
    积分:1
  • websocket服务端实现
    websocket服务端实现,C++  is one of the most lightweight, efficient & scalable WebSocket & HTTP server implementations available. It features an easy-to-use, fully async object-oriented interface and scales to millions of connections using only a fraction of memory compared to the competition. While performance and scalability are two of our top priorities, we consider security, stability and standards compliance paramount. License is zlib/libpng (very permissive & suits commercial applications). Autobahn tests  请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-02-24 23:19:42下载
    积分:1
  • live555 源码
    Live555 是一个为流媒体提供解决方案的跨平台的C++开源项目,它实现了对标准流媒体传输协议 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-08-15 04:01:53下载
    积分:1
  • 696516资源总数
  • 106562会员总数
  • 4今日下载