-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (23 loc) · 779 Bytes
/
Copy pathmain.cpp
File metadata and controls
32 lines (23 loc) · 779 Bytes
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
#include <QtCore>
#include <QtGui>
#include <QtWidgets>
#include <QtQml>
#include <filesystem>
#include <future>
#include <iostream>
#include "virus-detection.h"
int main(int argc, char** argv) {
QApplication app(argc, argv);
std::cout << "App initialized" << std::endl;
QQmlApplicationEngine engine; //("ui/Main.qml");
QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed,
&app, []() { QCoreApplication::exit(-1); },
Qt::QueuedConnection);
engine.loadFromModule("MainUi", "Main");
// for (const auto& entry : std::filesystem::directory_iterator("ui/pages")) {
// std::cout << entry.path() << std::endl;
// }
std::cout << "About to execute" << std::endl;
auto a = std::async(Antivirus::run_clamav_daemon);
return app.exec();
}