34 lines
758 B
C++
34 lines
758 B
C++
#include <QApplication>
|
|
#include <QQmlApplicationEngine>
|
|
#include <QTextCodec>
|
|
#include <QByteArray>
|
|
#include <QtWidgets/QApplication>
|
|
#include <QQuickView>
|
|
#include <QtQuickWidgets/QQuickWidget>
|
|
#include <QQmlComponent>
|
|
#include <QQmlContext>
|
|
#include <QtSerialPort/QSerialPort>
|
|
#include <QtSerialPort/QSerialPortInfo>
|
|
|
|
#include "sharedata.h"
|
|
#include "serialcontroller.h"
|
|
#include "lua_wraper.h"
|
|
#include "mainwindow.h"
|
|
#include <windows.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
AllocConsole();
|
|
freopen("CONOUT$","w",stdout);
|
|
|
|
QApplication app(argc, argv);
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
printf("hello world");
|
|
MainWindow w;
|
|
w.setWindowTitle("协议调试器");
|
|
w.show();
|
|
|
|
return app.exec();
|
|
}
|