2025-03-05 09:33:46 +00:00
|
|
|
#include <QApplication>
|
2025-03-19 07:19:45 +00:00
|
|
|
#include <qdir.h>
|
|
|
|
|
#include <qdebug.h>
|
2025-03-10 09:35:07 +00:00
|
|
|
|
2025-03-17 09:30:54 +00:00
|
|
|
#include "mainwindow.h"
|
2025-03-05 09:33:46 +00:00
|
|
|
#include "centralwidget.h"
|
|
|
|
|
#include "serialport/serialport.h"
|
2025-03-17 09:30:54 +00:00
|
|
|
#include "realtimedataform.h"
|
2025-03-10 09:35:07 +00:00
|
|
|
#include "experimentsettingform.h"
|
2025-03-18 09:28:40 +00:00
|
|
|
#include "filemanager.h"
|
2025-03-27 09:31:19 +00:00
|
|
|
#include "logger.h"
|
2025-04-12 13:02:37 +00:00
|
|
|
#include "xlsxhandler.h"
|
2025-03-05 09:33:46 +00:00
|
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
2025-04-12 13:02:37 +00:00
|
|
|
QTextCodec *codec = QTextCodec::codecForName("UTF-8");
|
2025-04-14 09:11:01 +00:00
|
|
|
QTextCodec::setCodecForLocale(codec);
|
2025-04-12 13:02:37 +00:00
|
|
|
|
2025-03-27 09:31:19 +00:00
|
|
|
Logger::instance();
|
|
|
|
|
logde<<"main...";
|
|
|
|
|
|
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
|
|
|
|
2025-04-15 08:03:00 +00:00
|
|
|
MainWindow w;
|
|
|
|
|
w.show();
|
2025-04-12 13:02:37 +00:00
|
|
|
|
2025-04-15 08:03:00 +00:00
|
|
|
// XlsxHandler::test();
|
2025-04-12 13:02:37 +00:00
|
|
|
|
2025-03-05 09:33:46 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// FileManager::test();
|
2025-03-18 09:28:40 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// ExperimentSettingForm es;
|
|
|
|
|
// es.show();
|
2025-03-10 09:35:07 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// CentralWidget central;
|
|
|
|
|
// central.show();
|
2025-03-05 09:33:46 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// SerialPort::parserTest();
|
2025-03-05 09:33:46 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// SerialPort sp;
|
2025-03-06 07:25:37 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// RealTimeDataForm r;
|
|
|
|
|
// r.show();
|
2025-03-06 07:25:37 +00:00
|
|
|
|
2025-04-14 09:11:01 +00:00
|
|
|
// QObject::connect(&sp,&SerialPort::sigSendSerialPortData,
|
|
|
|
|
// &r,&RealTimeDataForm::slotRevSerialPortData);
|
2025-03-05 09:33:46 +00:00
|
|
|
|
|
|
|
|
return a.exec();
|
|
|
|
|
}
|