![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
QT
文章平均质量分 72
Andy-Action-Now
这个作者很懒,什么都没留下…
展开
-
Qt Activex
#ifndef FIRSTSERVER_H #define FIRSTSERVER_H #include #include #include "ui_firstserver.h" class FirstServer : public QWidget, public QAxBindable { Q_OBJECT public: FirstServer(QWidget *parent原创 2015-01-15 15:21:31 · 1183 阅读 · 1 评论 -
QTcpSocket服务器 定时器,多线程结合
QTcpsocket 写服务器程序时,需要定时向客户端发送监控数据,同时需要响应客户端请求。问题是: QTcpSocket 只能在同一个线程中使用,定时器会在主线程中运行解决方案:在定时器中发送信号给封装的客户端数据处理socket,并在线程中将该信号与socket中的操作相连接。 //clientsocket.h #ifndef CLIENTSOCKET_H #define CLIENTSOCK原创 2015-02-05 10:41:29 · 2365 阅读 · 0 评论