QSS 优化QTableView样式

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
QTableView
{
    background: rgb(55,55,55);
}
QTableView{
    selection-background-color:rgb(255,0,0);
    background-color:rgb(50,50,50);
    border:1px solid rgb(70,70,70);
    color:rgb(200,200,200)
}

QTableView::item
{
       border:1px solid rgb(65,65,65);
    color:rgb(200,200,200);

}
QTableView::item:hover
{
    background-color: rgb(30,30,30);
    font: 75 9pt "Microsoft YaHei";
    color:rgb(31,163,246);
}
QTableView::item::selected
{
    background-color: rgb(30,30,30);
    font: 75 9pt "Microsoft YaHei";
    color:rgb(31,163,246);
}




QHeaderView::section{
    background-color:rgb(90,90,90);
      color:rgb(200,200,200);
    border:1px solid rgb(60,60,60);
    border-bottom:1px solid rgb(70,70,70);
    height:27px;
    min-width:55px;
}
QHeaderView::section:hover
{
    background-color:rgb(80,80,80);

}