-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.cpp
More file actions
28 lines (21 loc) · 665 Bytes
/
Copy pathmain.cpp
File metadata and controls
28 lines (21 loc) · 665 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
#include <QApplication>
#include <QFile>
#include <QSplashScreen>
#include "model/DroneManager.h"
#include "view/MainWindow.h"
int main(int argc, char *argv[]) {
QApplication app(argc, argv);
app.setWindowIcon(QIcon(":assets/icons/icon.svg"));
QFile style(":/assets/style.qss");
style.open(QFile::ReadOnly);
app.setStyleSheet(QLatin1String(style.readAll()));
QPixmap pixmap(":assets/icons/icon.svg");
QSplashScreen splash(pixmap);
splash.show();
DroneManager droneManager;
View::MainWindow window(droneManager);
window.resize(1024, 576);
window.show();
splash.finish(&window);
return app.exec();
}