-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
49 lines (40 loc) · 1.25 KB
/
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
41
42
43
44
45
46
47
48
#include <QGuiApplication>
#include <QDebug>
#include <QScreen>
#include <QPixmap>
#include <QFile>
#include <QDir>
#include "Model.h"
#include <QQuickView>
#include <QProcess>
#include "Controller/ShellOperation.h"
#include "Processing/ImageProcessing.h"
#include <QTest>
#include "AppMain.h"
#include <QSysInfo>
#include <QNetworkInterface>
int main(int argc, char *argv[])
{
LOG << "STARTING ....";
LOG << "CURRENT DIR: " << QDir::currentPath();
QGuiApplication app(argc, argv);
// LOG << QSysInfo::bootUniqueId();
// LOG << QSysInfo::buildAbi();
// LOG << QSysInfo::buildCpuArchitecture();
// LOG << QSysInfo::currentCpuArchitecture();
// LOG << QSysInfo::kernelType();
// LOG << QSysInfo::kernelVersion();
// LOG << QSysInfo::machineHostName();
// LOG << QSysInfo::machineUniqueId();
// LOG << QSysInfo::prettyProductName();
// LOG << QSysInfo::productType();
// LOG << QSysInfo::productVersion();
// for(auto interface: QNetworkInterface::allInterfaces())
// LOG << interface.name() << interface.hardwareAddress();
AppMain appMain;
QQuickView *view = new QQuickView;
appMain.initApplication(view);
view->setSource(QStringLiteral("qrc:/main.qml"));
view->show();
return app.exec();
}