• 大小: 461KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-11
  • 语言: 其他
  • 标签: QT多线程  

资源简介

自己写的简单的多线程聊天程序,程序有很多不足之处,希望大家谅解

资源截图

代码片段和文件信息

#include “client.h“
#include “dialog.h“
MymessageBox::MymessageBox(QWidget *parent)
    :QDialog(parent)
{
        setupUi(this);
        okButton->setDefault(true);
        okButton->setEnabled(false);
        connect(ipEdit SIGNAL(textChanged(QString)) this SLOT(enableButton()));
        connect(portEdit SIGNAL(textChanged(QString)) this SLOT(enableButton()));
        connect(okButton SIGNAL(clicked()) this SLOT(connecttoserver()));
        connect(okButton SIGNAL(clicked()) this SLOT(disableeditline()));
        connect(&tcpclient SIGNAL(connected()) this SLOT(onConnected()));
        connect(sendButton SIGNAL(clicked()) this SLOT(send()));
        connect(closeButtonSIGNAL(clicked()) this SLOT(close()));

}
void MymessageBox::enableButton()
{
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2426  2010-06-12 14:20  myserver\dialog.h

     文件       1464  2010-06-12 14:19  myserver\dialog.ui

     文件        493  2010-06-11 16:46  myserver\dialogserver.cpp

     文件        368  2010-06-11 16:46  myserver\dialogserver.h

     文件        157  2010-06-10 13:41  myserver\main.cpp

     文件        543  2010-06-11 20:04  myserver\mydialog.cpp

     文件        356  2010-06-11 16:25  myserver\mydialog.h

     文件        601  2010-06-11 19:39  myserver\mythread.cpp

     文件        444  2010-06-11 18:24  myserver\mythread.h

     文件       1600  2010-06-12 21:49  client1\client.cpp

     文件        535  2010-06-12 11:56  client1\client.h

     文件         91  2010-06-12 21:51  client1\client1.pro

     文件      12972  2010-06-12 22:15  client1\client1.pro.user

     文件     285415  2010-06-12 21:52  client1\debug\client.o

     文件    1089065  2010-06-12 21:52  client1\debug\client1.exe

     文件     245461  2010-06-12 21:52  client1\debug\main.o

     文件       2903  2010-06-12 21:52  client1\debug\moc_client.cpp

     文件     263668  2010-06-12 21:52  client1\debug\moc_client.o

     文件       3666  2010-06-12 10:19  client1\dialog.h

     文件       2686  2010-06-12 10:18  client1\dialog.ui

     文件        285  2010-06-12 10:24  client1\main.cpp

     文件       5404  2010-06-12 21:52  client1\Makefile

     文件       5170  2010-06-12 21:52  client1\Makefile.Debug

     文件       5242  2010-06-12 21:52  client1\Makefile.Release

     目录          0  2010-06-12 21:52  client1\debug

     目录          0  2010-06-12 21:51  client1\release

     目录          0  2010-06-12 22:15  myserver

     目录          0  2010-06-12 21:51  client1

----------- ---------  ---------- -----  ----

              1931015                    28

............此处省略1个文件信息

评论

共有 条评论