摘要:
引用串口 在.pro文件中添加QT += serialport语句。 添加头文件 #include <QSerialPort> #include <QSerialPortInfo> 创建串口对象 QSerialPort serial; 初始化串口 //设置串口名 serial.setPortName 阅读全文
posted @ 2020-08-04 21:15
派大海星
阅读(764)
评论(0)
推荐(0)
摘要:
写文件 QFile file("filename.bin"); file.open(QIODevice::WriteOnly); file.write(...); file.close(); qint64 write(const char *data, qint64 len); qint64 wri 阅读全文
posted @ 2020-08-04 19:56
派大海星
阅读(212)
评论(0)
推荐(0)

浙公网安备 33010602011771号