2025-03-05 09:33:46 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
#include "centralwidget.h"
|
|
|
|
|
#include "serialport/serialport.h"
|
2025-03-06 07:25:37 +00:00
|
|
|
#include "ui/realtimedataform.h"
|
2025-03-05 09:33:46 +00:00
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2025-03-06 07:25:37 +00:00
|
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); // 启用高DPI缩放
|
2025-03-05 09:33:46 +00:00
|
|
|
QApplication a(argc, argv);
|
|
|
|
|
// MainWindow w;
|
|
|
|
|
// w.show();
|
|
|
|
|
|
2025-03-06 07:25:37 +00:00
|
|
|
CentralWidget central;
|
|
|
|
|
central.show();
|
2025-03-05 09:33:46 +00:00
|
|
|
|
2025-03-06 07:25:37 +00:00
|
|
|
// SerialPort::parserTest();
|
2025-03-05 09:33:46 +00:00
|
|
|
|
2025-03-06 07:25:37 +00:00
|
|
|
SerialPort sp;
|
|
|
|
|
|
|
|
|
|
RealTimeDataForm r;
|
|
|
|
|
// r.show();
|
|
|
|
|
|
|
|
|
|
QObject::connect(&sp,&SerialPort::sigSendSerialPortData,
|
|
|
|
|
&r,&RealTimeDataForm::slotRevSerialPortData);
|
2025-03-05 09:33:46 +00:00
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|