- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.cpp
More file actions
Latest commit
27 lines (24 loc) · 632 Bytes
/
Copy pathmain.cpp
File metadata and controls
27 lines (24 loc) · 632 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
#include"mainwindow.h"
#include<QApplication>
intmain(int argc, char *argv[])
{
QCoreApplication::addLibraryPath("@executable_path/../");
QApplication a(argc, argv);
MainWindow w;
QFile f(":qdarkstyle/style.qss");
if (!f.exists())
{
printf("Unable to set stylesheet, file not found\n");
}
else
{
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
qApp->setStyleSheet(ts.readAll());
}
a.setApplicationName("OpenAFM 0.7");
a.setApplicationDisplayName("OpenAFM 0.7");
a.setApplicationVersion("0.7");
w.show();
return a.exec();
}