标签/分类 "上位机" 下的文章
软件定时注册的设计
软件注册功能需求 1、授权时间区间。 比如2020年1月1日至2020年3月1日有效。 2、软件只能在一个主机上面使用,授权后不能更换主机。 比如假如在A主机授权之后,拷贝到B主机该软件要求不能正常使用。 3、不允许通过更改系统时间来达到破解目的。 4
QT-串口操作
修改.pro文件 添加如下所示代码 QT += serialport 编写.h文件 1、添加头文件 #include <QtSerialPort>2、添加串口定义 QSerialPort *serialPort; 源文件代码 1、 添加头文件 #include <QSerialPort>#include <QSerialPortInfo>2、搜索串口 void MainWindow::on_btn_find_seriaport_clicked() { const auto infos = QSerialPortInfo::availablePorts(); ui->cbx_com_name->clear(); for(const QSerialPortInfo &info : infos)