#include<QtNetwork/QTcpSocket>#include<QtNetwork/QTcpServer> 1.服务器端 2. 客户端,加入自动重连 Read More
posted @ 2016-10-24 19:49 karappo Views(737) Comments(0) Diggs(0) Edit
1. 使用QT加载CMake工程 打开QT,“文件”-》“打开文件或项目”-》选中CMakeLists.txt文件,出现对话框,单击下一步,点击“执行CMake”,等待CMake执行完毕后单击完成即可加载整个工程 2. CMake中符号的查找 安装CMake后在share\cmake-3.7\Mod Read More
posted @ 2016-10-24 19:40 karappo Views(164) Comments(0) Diggs(0) Edit
1. 这是因为工程link不到network的库,因此除了要包含头文件 #include 之外,还需要在.pro文件中加入: QT += network 2. 对于CMake,需添加Network相关package #"/home/Qt5.1.0/5.1.0/gcc" QT5目录 set(CMAKE Read More
posted @ 2016-10-24 19:20 karappo Views(1234) Comments(0) Diggs(0) Edit
环境:VS2013+office2007 头文件: 源文件: 使用: Read More
posted @ 2016-10-24 19:05 karappo Views(3172) Comments(2) Diggs(2) Edit