1 Star 0 Fork 0

Qt_Lvgl/ScannerAssistant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
widget.h 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
#ifndef WIDGET_H
#define WIDGET_H
#include <QWidget>
#include <QComboBox>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QSerialPortInfo>
#include <QSerialPort>
#include <QGridLayout>
#include <QFormLayout>
#include <QTimer>
class QLabel;
class QLineEdit;
class QComboBox;
class QSpinBox;
class QPushButton;
class Widget : public QWidget
{
Q_OBJECT
public:
Widget(QWidget *parent = nullptr);
~Widget();
private slots:
void RefreshSerialPortList(void);
void connectScanPort(void);
void connectDevPort(void);
void handleScanData(void);
void handleDeviceData(void);
void SendCalibPressureCommand(void);
private:
QPushButton m_refreshBtn;
QLabel m_scanLabel;
QComboBox m_scanBox;
QPushButton m_scanBtn;
QLabel m_devLabel;
QComboBox m_devBox;
QPushButton m_devBtn;
QLabel m_scanInfoLabel;
QLineEdit m_scanInfoLine;
QLabel m_devInfoLabel;
QLineEdit m_devInfoLine;
QSerialPort scanPort;
QSerialPort devPort;
QPushButton m_calibBtn;
QLineEdit m_pressLine;
QHBoxLayout hLayout1;
QHBoxLayout hLayout2;
QHBoxLayout hLayout3;
QHBoxLayout hLayout4;
QHBoxLayout hLayout5;
QGridLayout mainLayout;
//QTimer m_CalibTimer;
};
unsigned char calcCRC8( const unsigned char * buf, unsigned int len);
void dump_hex_array(const char *info, unsigned char *buf, unsigned int len);
#endif // WIDGET_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qt_-lvgl/scanner-assistant.git
git@gitee.com:qt_-lvgl/scanner-assistant.git
qt_-lvgl
scanner-assistant
ScannerAssistant
master

搜索帮助