QQ聊天程序源码

时间:2016-06-14 01:52:17
【文件属性】:

文件名称:QQ聊天程序源码

文件大小:583KB

文件格式:RAR

更新时间:2016-06-14 01:52:17

QQ聊天程序

QT资源 类似QQ void chatform::on_sendButton_clicked() { QString sendText = ui->textEdit->toPlainText(); if(!sendText.isEmpty()) { QString windowTitle = this->windowTitle().replace("].",""); QString toId = QString(windowTitle.split("[").at(1)); QString msgType = "MSG_CLIENT_CHAT"; QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out.setVersion(QDataStream::Qt_4_6); out << (quint16)0 << msgType << usrname << toId << sendText; out.device()->seek(0); out << (quint16)(block.size() - sizeof(quint16)); udpSocket->writeDatagram(block.data(), block.size(), QHostAddress(serverIp), (quint16)serverPort.toUInt()+1); ui->listWidget->addItem("I say :\n" + sendText + "\n"); } ui->textEdit->clear(); }


【文件预览】:
2donkey
----2donkey()
--------ui_panel.h(8KB)
--------ui_login.h(7KB)
--------donkeyhead-client()
--------Makefile(7KB)
--------ui_findpwd.h(2KB)
--------release()
--------object_script.2donkey.Debug(413B)
--------Makefile.Debug(13KB)
--------debug()
--------2donkey.pro(2KB)
--------2donkey.pro.user.2.1pre1(10KB)
--------2donkey.pro.user(23KB)
--------object_script.2donkey.Release(451B)
--------Makefile.Release(13KB)
--------ui_regdialog.h(4KB)
--------ui_chatform.h(5KB)

网友评论