11/25
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
/* 未下拉时,QComboBox的样式 */
|
||||
QComboBox {
|
||||
border: 1px solid gray; /* 边框 */
|
||||
border-radius: 3px; /* 圆角 */
|
||||
padding: 1px 18px 1px 3px; /*字体填衬 */
|
||||
color: #000;
|
||||
font: 25px "黑体";
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* 下拉后,整个下拉窗体样式 */
|
||||
QComboBox QAbstractItemView {
|
||||
outline: 0px solid gray; /* 选定项的虚框 */
|
||||
border: 0px solid gray; /* 整个下拉窗体的边框 */
|
||||
color: black;
|
||||
background-color: #C3E4F3; /* 整个下拉窗体的背景色 */
|
||||
selection-background-color: lightgreen; /* 整个下拉窗体被选中项的背景色 */
|
||||
font: 25px "黑体";
|
||||
}
|
||||
|
||||
/* 下拉后,整个下拉窗体每项的样式 */
|
||||
QComboBox QAbstractItemView::item {
|
||||
height: 50px; /* 项的高度(设置pComboBox->setView(new QListView());后,该项才起作用) */
|
||||
}
|
||||
72
ZBD_IIIDL_S_Project/build20241115/DependFile/QSS/QSlider.txt
Normal file
72
ZBD_IIIDL_S_Project/build20241115/DependFile/QSS/QSlider.txt
Normal file
@@ -0,0 +1,72 @@
|
||||
|
||||
/**********首先指定是水平还是竖直*不添加此代码,下方不起作用******/
|
||||
QSlider::groove:horizontal {
|
||||
border: 0px solid #bbb;
|
||||
}
|
||||
/*1.滑动过的槽设计参数*/
|
||||
QSlider::sub-page:horizontal {
|
||||
/*槽颜色*/
|
||||
background: #05A6EC;
|
||||
/*外环区域倒圆角度*/
|
||||
border-radius: 4px;
|
||||
/*上遮住区域高度*/
|
||||
margin-top:8px;
|
||||
/*下遮住区域高度*/
|
||||
margin-bottom:8px;
|
||||
/*width在这里无效,不写即可*/
|
||||
}
|
||||
|
||||
/*2.未滑动过的槽设计参数*/
|
||||
QSlider::add-page:horizontal {
|
||||
/*槽颜色*/
|
||||
background: #ECEBEB;
|
||||
/*外环大小0px就是不显示,默认也是0*/
|
||||
border: 0px solid #777;
|
||||
/*外环区域倒圆角度*/
|
||||
border-radius: 4px;
|
||||
/*上遮住区域高度*/
|
||||
margin-top:9px;
|
||||
/*下遮住区域高度*/
|
||||
margin-bottom:9px;
|
||||
}
|
||||
|
||||
/*3.平时滑动的滑块设计参数*/
|
||||
/3.1**********使用纯代码实现*****/
|
||||
QSlider::handle:horizontal {
|
||||
/*滑块颜色*/
|
||||
background: rgb(255,255,255);
|
||||
/*滑块的宽度*/
|
||||
width: 30px;
|
||||
/*滑块外环为1px,再加颜色*/
|
||||
border: 1px solid #05A6EC;
|
||||
/*滑块外环倒圆角度*/
|
||||
border-radius: 15px;
|
||||
/*上遮住区域高度*/
|
||||
margin-top:0px;
|
||||
/*下遮住区域高度*/
|
||||
margin-bottom:0px;
|
||||
}
|
||||
|
||||
/*********使用背景图的方式添加滑块***********/
|
||||
QSlider::handle:horizontal {
|
||||
width: 30px;
|
||||
background:transparent;
|
||||
background-image: url(:/DependFile/Source/channel/slder.png);
|
||||
margin: -5px -0px -0px -0px;
|
||||
}
|
||||
|
||||
/*4.手动拉动时显示的滑块设计参数*/
|
||||
QSlider::handle:horizontal:hover {
|
||||
/*滑块颜色*/
|
||||
background: rgb(193,204,208);
|
||||
/*滑块的宽度*/
|
||||
width: 30px;
|
||||
/*滑块外环为1px,再加颜色*/
|
||||
border: 1px solid rgb(193,204,208);
|
||||
/*滑块外环倒圆角度*/
|
||||
border-radius: 5px;
|
||||
/*上遮住区域高度*/
|
||||
margin-top:4px;
|
||||
/*下遮住区域高度*/
|
||||
margin-bottom:4px;
|
||||
}
|
||||
82
ZBD_IIIDL_S_Project/build20241115/DependFile/QSS/app.txt
Normal file
82
ZBD_IIIDL_S_Project/build20241115/DependFile/QSS/app.txt
Normal file
@@ -0,0 +1,82 @@
|
||||
/**********首先指定是水平还是竖直*不添加此代码,下方不起作用******/
|
||||
QSlider::groove:horizontal {
|
||||
border: 0px solid #bbb;
|
||||
}
|
||||
/*1.滑动过的槽设计参数*/
|
||||
QSlider::sub-page:horizontal {
|
||||
/*槽颜色*/
|
||||
background:#05A6EC;
|
||||
/*外环区域倒圆角度*/
|
||||
border-radius: 4px;
|
||||
/*上遮住区域高度*/
|
||||
margin-top:14px;
|
||||
/*下遮住区域高度*/
|
||||
margin-bottom:14px;
|
||||
/*width在这里无效,不写即可*/
|
||||
/*****/
|
||||
margin-left:8px;
|
||||
|
||||
}
|
||||
|
||||
/*2.未滑动过的槽设计参数*/
|
||||
QSlider::add-page:horizontal {
|
||||
/*槽颜色*/
|
||||
background: #ECEBEB;
|
||||
/*外环大小0px就是不显示,默认也是0*/
|
||||
border: 0px solid #777;
|
||||
/*外环区域倒圆角度*/
|
||||
border-radius: 4px;
|
||||
/*上遮住区域高度*/
|
||||
margin-top:14px;
|
||||
/*下遮住区域高度*/
|
||||
margin-bottom:14px;
|
||||
|
||||
margin-right:8px;
|
||||
}
|
||||
|
||||
/********使用图片填充滑块效果***********/
|
||||
QSlider::handle:horizontal {
|
||||
width: 43px;
|
||||
background:transparent;
|
||||
background-image: url(:/DependFile/Source/channel/slder.png);
|
||||
margin: -0px -0px -0px -0px;
|
||||
}
|
||||
|
||||
/********radioButton效果***********/
|
||||
QRadioButton::indicator:unchecked{
|
||||
image: url(:/DependFile/Source/radioButton/normal.png);
|
||||
width:20;
|
||||
height:20;
|
||||
}
|
||||
|
||||
QRadioButton::indicator:checked{
|
||||
image: url(:/DependFile/Source/radioButton/checked.png);
|
||||
width:20;
|
||||
height:20;
|
||||
}
|
||||
|
||||
|
||||
/* 未下拉时,QComboBox的样式 */
|
||||
QComboBox {
|
||||
border: 1px solid gray; /* 边框 */
|
||||
border-radius: 3px; /* 圆角 */
|
||||
padding: 1px 18px 1px 3px; /* 字体填衬 */
|
||||
color: #000;
|
||||
font: 20px "黑体";
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/* 下拉后,整个下拉窗体样式 */
|
||||
QComboBox QAbstractItemView {
|
||||
outline: 0px solid gray; /* 选定项的虚框 */
|
||||
border: 0px solid gray; /* 整个下拉窗体的边框 */
|
||||
color: black;
|
||||
background-color: #C3E4F3; /* 整个下拉窗体的背景色 */
|
||||
selection-background-color: lightgreen; /* 整个下拉窗体被选中项的背景色 */
|
||||
font: 20px "黑体";
|
||||
}
|
||||
|
||||
/* 下拉后,整个下拉窗体每项的样式 */
|
||||
QComboBox QAbstractItemView::item {
|
||||
height: 50px; /* 项的高度(设置pComboBox->setView(new QListView());后,该项才起作用) */
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
此文件夹下存放qss文件
|
||||
191
ZBD_IIIDL_S_Project/build20241115/DependFile/QSS/tablewidget.txt
Normal file
191
ZBD_IIIDL_S_Project/build20241115/DependFile/QSS/tablewidget.txt
Normal file
@@ -0,0 +1,191 @@
|
||||
//无数据部分表头
|
||||
QHeaderView{
|
||||
border: none;
|
||||
border-bottom: 3px solid rgb(0, 160, 230);
|
||||
background: rgb(57, 58, 60);
|
||||
min-height: 30px;
|
||||
}
|
||||
//有数据部分水平表头
|
||||
QHeaderView::section:horizontal {
|
||||
border: none;
|
||||
color: white;
|
||||
background: transparent;
|
||||
padding-left: 5px;
|
||||
}
|
||||
//有数据部分垂直表头
|
||||
QHeaderView::section:vertical {
|
||||
border: none;
|
||||
color: white;
|
||||
background: transparent;
|
||||
padding-left: 5px;
|
||||
}
|
||||
//有数据部分表格角落按钮
|
||||
QTableCornerButton:section{
|
||||
background:#039092;
|
||||
border:1px solid #777777;
|
||||
}
|
||||
QTreeView,QListView,QTableView,QSplitter::handle,QTreeView::branch{
|
||||
background:#ff0000;
|
||||
}
|
||||
QHeaderView::section:horizontal:hover {
|
||||
background: rgb(0, 160, 230);
|
||||
}
|
||||
QHeaderView::section:horizontal:pressed {
|
||||
background: rgb(0, 180, 255);
|
||||
}
|
||||
QHeaderView::up-arrow {
|
||||
width: 13px;
|
||||
height: 11px;
|
||||
padding-right: 5px;
|
||||
image: url(:/Black/topArrow);
|
||||
subcontrol-position: center right;
|
||||
}
|
||||
QHeaderView::up-arrow:hover, QHeaderView::up-arrow:pressed {
|
||||
image: url(:/Black/topArrowHover);
|
||||
}
|
||||
QHeaderView::down-arrow {
|
||||
width: 13px;
|
||||
height: 11px;
|
||||
padding-right: 5px;
|
||||
image: url(:/Black/bottomArrow);
|
||||
subcontrol-position: center right;
|
||||
}
|
||||
QHeaderView::down-arrow:hover, QHeaderView::down-arrow:pressed {
|
||||
image: url(:/Black/bottomArrowHover);
|
||||
}
|
||||
|
||||
/**********表格**********/
|
||||
//无数据部分内容样式
|
||||
QTableView {
|
||||
border: 1px solid rgb(45, 45, 45);
|
||||
background: rgb(57, 58, 60);
|
||||
gridline-color: rgb(60, 60, 60);//表格数据部分网格线
|
||||
}
|
||||
//有数据部分内容样式
|
||||
QTableView::item {
|
||||
padding-left: 5px;
|
||||
padding-right: 5px;
|
||||
border: none;
|
||||
background: rgb(72, 72, 74);
|
||||
border-right: 1px solid rgb(45, 45, 45);
|
||||
border-bottom: 1px solid rgb(45, 45, 45);
|
||||
}
|
||||
QTableView::item:selected {
|
||||
background: rgba(255, 255, 255, 40);
|
||||
}
|
||||
QTableView::item:selected:!active {
|
||||
color: white;
|
||||
}
|
||||
QTableView::indicator {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
QTableView::indicator:enabled:unchecked {
|
||||
image: url(:/Black/checkBox);
|
||||
}
|
||||
QTableView::indicator:enabled:unchecked:hover {
|
||||
image: url(:/Black/checkBoxHover);
|
||||
}
|
||||
QTableView::indicator:enabled:unchecked:pressed {
|
||||
image: url(:/Black/checkBoxPressed);
|
||||
}
|
||||
QTableView::indicator:enabled:checked {
|
||||
image: url(:/Black/checkBoxChecked);
|
||||
}
|
||||
QTableView::indicator:enabled:checked:hover {
|
||||
image: url(:/Black/checkBoxCheckedHover);
|
||||
}
|
||||
QTableView::indicator:enabled:checked:pressed {
|
||||
image: url(:/Black/checkBoxCheckedPressed);
|
||||
}
|
||||
QTableView::indicator:enabled:indeterminate {
|
||||
image: url(:/Black/checkBoxIndeterminate);
|
||||
}
|
||||
QTableView::indicator:enabled:indeterminate:hover {
|
||||
image: url(:/Black/checkBoxIndeterminateHover);
|
||||
}
|
||||
QTableView::indicator:enabled:indeterminate:pressed {
|
||||
image: url(:/Black/checkBoxIndeterminatePressed);
|
||||
}
|
||||
|
||||
/**********滚动条-水平**********/
|
||||
QScrollBar:horizontal {
|
||||
height: 20px;
|
||||
background: transparent;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
QScrollBar::handle:horizontal {
|
||||
height: 20px;
|
||||
min-width: 30px;
|
||||
background: rgb(68, 69, 73);
|
||||
margin-left: 15px;
|
||||
margin-right: 15px;
|
||||
}
|
||||
QScrollBar::handle:horizontal:hover {
|
||||
background: rgb(80, 80, 80);
|
||||
}
|
||||
QScrollBar::sub-line:horizontal {
|
||||
width: 15px;
|
||||
background: transparent;
|
||||
image: url(:/Black/arrowLeft);
|
||||
subcontrol-position: left;
|
||||
}
|
||||
QScrollBar::add-line:horizontal {
|
||||
width: 15px;
|
||||
background: transparent;
|
||||
image: url(:/Black/arrowRight);
|
||||
subcontrol-position: right;
|
||||
}
|
||||
QScrollBar::sub-line:horizontal:hover {
|
||||
background: rgb(68, 69, 73);
|
||||
}
|
||||
QScrollBar::add-line:horizontal:hover {
|
||||
background: rgb(68, 69, 73);
|
||||
}
|
||||
QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
/**********滚动条-垂直**********/
|
||||
QScrollBar:vertical {
|
||||
width: 20px;
|
||||
background: transparent;
|
||||
margin-left: 3px;
|
||||
margin-right: 3px;
|
||||
}
|
||||
QScrollBar::handle:vertical {
|
||||
width: 20px;
|
||||
min-height: 30px;
|
||||
background: rgb(68, 69, 73);
|
||||
margin-top: 15px;
|
||||
margin-bottom: 15px;
|
||||
}
|
||||
QScrollBar::handle:vertical:hover {
|
||||
background: rgb(80, 80, 80);
|
||||
}
|
||||
QScrollBar::sub-line:vertical {
|
||||
height: 15px;
|
||||
background: transparent;
|
||||
image: url(:/Black/arrowTop);
|
||||
subcontrol-position: top;
|
||||
}
|
||||
QScrollBar::add-line:vertical {
|
||||
height: 15px;
|
||||
background: transparent;
|
||||
image: url(:/Black/arrowBottom);
|
||||
subcontrol-position: bottom;
|
||||
}
|
||||
QScrollBar::sub-line:vertical:hover {
|
||||
background: rgb(68, 69, 73);
|
||||
}
|
||||
QScrollBar::add-line:vertical:hover {
|
||||
background: rgb(68, 69, 73);
|
||||
}
|
||||
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
QScrollBar#verticalScrollBar:vertical {
|
||||
margin-top: 30px;
|
||||
}
|
||||
Reference in New Issue
Block a user