-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathmain.cpp
41 lines (28 loc) · 783 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//#undef _DEBUG
#include "Model/MailBody.h"
#include "Model/Utils.h"
#include "Model/MailListModel.h"
#include "Model/IMAPClient.h"
#include <QtGui/QGuiApplication>
#include <QtQml/QQmlApplicationEngine>
#include <QtQml/QQmlContext>
#include <QDebug>
#include <QQmlContext>
#include <QVector>
#include <QString>
#include <QtWebEngine/qtwebengineglobal.h>
#include<string>
#include<vector>
#include<sstream>
#include<fstream>
using namespace std;
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QtWebEngine::initialize ();
QQmlApplicationEngine engine;
Models::MailListModel model;
engine.rootContext ()->setContextProperty("mailListModel", &model);
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}