-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
23 lines (21 loc) · 735 Bytes
/
main.cpp
File metadata and controls
23 lines (21 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
//#include <Header/readpefile.h>
#include <Header/resolvent.h>
//#include <Header/define.h>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
// ReadPeFile * readPeFile;
Resolvent resolvent;
// Object::connect(readPeFile,SIGNAL(setTextData(TextSection)),resolvent, SLOT(getTextData(TextSection)));
//const QUrl url("qrc:///main.qml");
const QUrl url("qrc:/main.qml");
QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed,
&app, []() { QCoreApplication::exit(-1); },
Qt::QueuedConnection);
engine.load(url);
return app.exec();
}