2025-03-05 09:33:46 +00:00
|
|
|
#include "mainwindow.h"
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
2025-03-10 09:35:07 +00:00
|
|
|
|
2025-03-05 09:33:46 +00:00
|
|
|
#include "centralwidget.h"
|
|
|
|
|
#include "serialport/serialport.h"
|
2025-03-06 07:25:37 +00:00
|
|
|
#include "ui/realtimedataform.h"
|
2025-03-10 09:35:07 +00:00
|
|
|
#include "experimentsettingform.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);
|
2025-03-10 09:35:07 +00:00
|
|
|
|
|
|
|
|
MainWindow w;
|
2025-03-12 09:29:52 +00:00
|
|
|
w.show();
|
2025-03-05 09:33:46 +00:00
|
|
|
|
2025-03-12 09:29:52 +00:00
|
|
|
// ExperimentSettingForm es;
|
|
|
|
|
// es.show();
|
2025-03-10 09:35:07 +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-10 09:35:07 +00:00
|
|
|
// SerialPort sp;
|
2025-03-06 07:25:37 +00:00
|
|
|
|
2025-03-10 09:35:07 +00:00
|
|
|
// RealTimeDataForm r;
|
2025-03-06 07:25:37 +00:00
|
|
|
// r.show();
|
|
|
|
|
|
2025-03-10 09:35:07 +00:00
|
|
|
// QObject::connect(&sp,&SerialPort::sigSendSerialPortData,
|
|
|
|
|
// &r,&RealTimeDataForm::slotRevSerialPortData);
|
2025-03-05 09:33:46 +00:00
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|