-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
57 lines (52 loc) · 2.47 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
49
50
51
52
53
54
55
56
57
#include "mainwindow.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow mainWin;
a.setStyleSheet("QScrollBar:horizontal {\n"
"border: 1px solid rgb(241, 239, 239);\n"
"border-left:0px;\n"
"border-right:0px;\n"
"border-bottom:0px;\n "
"background: #ffffff;\n "
"height: 15px;\n "
"margin: 0px 0px 0 0px;\n }\n "
"QScrollBar::handle:horizontal {\n "
"background: rgb(180,180, 180);\n "
"min-width: 20px;\n "
"margin: 3px 3px 3 3px;\n"
"border-radius:0px;\n }\n "
"QScrollBar::handle:horizontal:hover {\n "
"background: rgb(150,150, 150);\n }\n "
"QScrollBar::add-line:horizontal {\n "
"width: 0px;\n }\n\n "
"QScrollBar::sub-line:horizontal {\n "
"width: 0px;\n "
"}\n/**/\n "
"QScrollBar:vertical {\n "
"border: 1px solid rgb(241, 239, 239);\n"
"border-top:0px;\n"
"border-right:0px;\n"
"border-bottom:0px;\n "
" background: #ffffff;\n "
"width: 15px;\n "
"margin: 0px 0px 0 0px;\n "
"}\n "
"QScrollBar::handle:vertical {\n "
"background: rgb(180,180, 180);\n "
"min-height: 20px;\n "
"margin: 3px 3px 3 3px;\n"
"border-radius:0px;\n "
"}\n "
"QScrollBar::handle:vertical:hover {\n "
"background: rgb(150,150, 150);\n "
"}\n "
"QScrollBar::add-line:vertical {\n "
"width: 0px;\n "
"}\n\n "
"QScrollBar::sub-line:vertical {\n "
"width: 0px;\n }\n"
);
return a.exec();
}