39 lines
1.0 KiB
C++
39 lines
1.0 KiB
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"
|
|
|
|
#define test1 293
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
qDebug()<<test1;
|
|
QApplication app(argc, argv);
|
|
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
MainWindow w;
|
|
w.setWindowTitle("协议调试器");
|
|
w.show();
|
|
// QQuickWidget *m_quickWidget=new QQuickWidget();
|
|
// QUrl source("qrc:/main.qml");
|
|
// m_quickWidget->setResizeMode(QQuickWidget::SizeRootObjectToView );
|
|
// m_quickWidget->setSource(source);
|
|
// m_quickWidget->rootContext()->setContextProperty("DataWrap",&gGlobal);
|
|
// m_quickWidget->show();
|
|
// gGlobal.SetQuickView(m_quickWidget);
|
|
|
|
return app.exec();
|
|
}
|