QT 记Sqlite用法
摘要:一、在.pro文件添加 QT += core gui sql 二、头文件 #include <QSqlDatabase> #include <QSqlError> #include <QSqlQuery> 三、用法 1 //以写的查询为例 2 QSqlDatabase db = QSqlDataba
阅读全文
QT 记串口的用法
摘要:QSerialPort用法 一、在.pro文件添加serialport QT += core gui serialport 二、头文件 #include <QSerialPort> #include <QSerialPortInfo> 三、开启串口 1 void Widget::on_pushBut
阅读全文