【实例简介】
使用Qt实现客户端服务端聊天和传输文件,带有ui设计界面
【实例截图】
【核心代码】
TcpFile
└── TcpFile
├── TcpClient
│ ├── TcpClient.pro
│ ├── TcpClient.pro.user
│ ├── b.ico
│ ├── client.cpp
│ ├── client.h
│ ├── client.ui
│ ├── clientfile.cpp
│ ├── clientfile.h
│ ├── clientfile.ui
│ └── main.cpp
├── TcpServer
│ ├── TcpServer.pro
│ ├── TcpServer.pro.user
│ ├── a.ico
│ ├── main.cpp
│ ├── server.cpp
│ ├── server.h
│ ├── server.ui
│ ├── serverfile.cpp
│ ├── serverfile.h
│ └── serverfile.ui
├── build-TcpClient-Desktop_Qt_5_4_0_MinGW_32bit-Debug
│ ├── Makefile
│ ├── Makefile.Debug
│ ├── Makefile.Release
│ ├── debug
│ │ ├── TcpClient.exe
│ │ ├── client.o
│ │ ├── clientfile.o
│ │ ├── main.o
│ │ ├── moc_client.cpp
│ │ ├── moc_client.o
│ │ ├── moc_clientfile.cpp
│ │ └── moc_clientfile.o
│ ├── ui_client.h
│ └── ui_clientfile.h
├── build-TcpClient-Desktop_Qt_5_4_0_MinGW_32bit-Release
│ ├── Makefile
│ ├── Makefile.Debug
│ ├── Makefile.Release
│ ├── TcpClient_resource.rc
│ ├── release
│ │ ├── TcpClient.exe
│ │ ├── TcpClient_resource_res.o
│ │ ├── client.o
│ │ ├── clientfile.o
│ │ ├── main.o
│ │ ├── moc_client.cpp
│ │ ├── moc_client.o
│ │ ├── moc_clientfile.cpp
│ │ └── moc_clientfile.o
│ ├── ui_client.h
│ └── ui_clientfile.h
├── build-TcpServer-Desktop_Qt_5_4_0_MinGW_32bit-Release
│ ├── Makefile
│ ├── Makefile.Debug
│ ├── Makefile.Release
│ ├── TcpServer_resource.rc
│ ├── release
│ │ ├── TcpServer.exe
│ │ ├── TcpServer_resource_res.o
│ │ ├── main.o
│ │ ├── moc_server.cpp
│ │ ├── moc_server.o
│ │ ├── moc_serverfile.cpp
│ │ ├── moc_serverfile.o
│ │ ├── server.o
│ │ └── serverfile.o
│ ├── ui_server.h
│ └── ui_serverfile.h
└── run
├── Qt5Core.dll
├── Qt5Gui.dll
├── Qt5Network.dll
├── Qt5Svg.dll
├── Qt5Widgets.dll
├── TcpClient.exe
├── TcpClient_boxed.exe
├── bearer
│ ├── qgenericbearer.dll
│ └── qnativewifibearer.dll
├── iconengines
│ └── qsvgicon.dll
├── icudt53.dll
├── icuin53.dll
├── icuuc53.dll
├── imageformats
│ ├── qdds.dll
│ ├── qgif.dll
│ ├── qicns.dll
│ ├── qico.dll
│ ├── qjp2.dll
│ ├── qjpeg.dll
│ ├── qmng.dll
│ ├── qsvg.dll
│ ├── qtga.dll
│ ├── qtiff.dll
│ ├── qwbmp.dll
│ └── qwebp.dll
├── libgcc_s_dw2-1.dll
├── libstdc++-6.dll
├── libwinpthread-1.dll
├── platforms
│ └── qwindows.dll
├── qt_ca.qm
├── qt_cs.qm
├── qt_de.qm
├── qt_fi.qm
├── qt_hu.qm
├── qt_it.qm
├── qt_ja.qm
├── qt_lv.qm
├── qt_ru.qm
├── qt_sk.qm
└── qt_uk.qm
14 directories, 103 files