![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
QT多平台
文章平均质量分 73
morningWang1314
这个作者很懒,什么都没留下…
展开
-
qt-C++的TCP通信数据解析处理
数据接收:QByteArray datagram;datagram.resize(tcpSock.bytesAvailable());tcpSock.read(datagram.data(), datagram.size());if(hexRecv){mutexRecv.lock();dataRecv.append(datagram);mutexRecv.unlock();}else{strTemp.append(datagram.data());mutexRecv.lock();原创 2020-07-22 09:40:44 · 3785 阅读 · 0 评论 -
简单的qt嵌入式跨平台的软键盘设计
定义好信号和槽函数:private slots:void val1();void val2();void val3();void val4();void val5();void val6();void val7();void val8();void val9();void val0();void valq();void valw();void vale();void valr();void valt();void valy();void valu();void val.原创 2020-07-17 11:21:19 · 649 阅读 · 0 评论 -
qt的tableview实时刷新显示数据
qtableview设置表头:model = new QStandardItemModel();model->setColumnCount(5); model->setHeaderData(0,Qt::Horizontal,QString::fromLocal8Bit(“EPC”));model->setHeaderData(1,Qt::Horizontal,QString::fromLocal8Bit(“PC”));model->setHeaderData(2,Qt:原创 2020-07-16 16:22:16 · 13662 阅读 · 5 评论