-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
53 lines (37 loc) · 800 Bytes
/
main.cpp
File metadata and controls
53 lines (37 loc) · 800 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//#include "bow.h"
//#include "inventory.h"
#include "mainwindow.h"
//#include "imagecapture.h"
#include <QApplication>
#include <QPixmap>
#include <QLabel>
#include <cstdio>
#include <map>
#include <QWidget>
#include <QFile>
#include <QTextStream>
#include <iostream>
#include "welcome.h"
void loadStyleSheet(){
QFile data(":/sheet/style.qss");
QString style;
if(data.open(QFile::ReadOnly)){
QTextStream styleIn(&data);
style = styleIn.readAll();
data.close();
qApp->setStyleSheet(style);
}
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
//BOW w;
//Imagegrab w;
//MainWindow w;
//Inventory w(1,0);
//ImageCapture w(0);
welcome w;
loadStyleSheet();
w.show();
return a.exec();
}