- 博客(4)
- 收藏
- 关注
原创 QT 数值类型转换
QT 数值类型转换1.quint8数组转换为二进制的string类型eg:quint8 BufData1[3]={0x00,0x11,0x12};int a;a=(BufData1[0]<<16)+(BufData1[1]<<8)+BufData1[2];QString str1=QString("%1").arg(a,18,2,QLatin1Char(‘0’));return的str1为00 0001 0001 0001 0010;**note:**1.左移的时
2020-07-16 15:25:37
1230
原创 QT环境下实现UDP通信
QT环境下实现UDP通信`mainwindow.cpp#include “mainwindow.h”#include “ui_mainwindow.h”MainWindow::MainWindow(QWidget *parent) :QMainWindow(parent),ui(new Ui::MainWindow){ui->setupUi(this);//创建发送Socketudp_send_socket=new QUdpSocket(this);QString IPSend=
2020-07-16 14:15:27
477
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人