BarcodeEditor
0
0
800
600
Form
QWidget {
font-size: 16px;
}
QPushButton#closeBtn, QPushButton#checkBtn{
background-color: #E6F7FF;
border: 1px solid #87CEEB;
border-radius: 4px;
font-size: 24px;
color: #228B22;
}
QPushButton#closeBtn:hover,QPushButton#checkBtn:hover{
background-color: #D1E9FF;
}
QPushButton#closeBtn:pressed,QPushButton#checkBtn:pressed{
background-color: #BAE7FF;
}
QPushButton {
background-color: #5396C1;
color: #ffffff;
border: 1px solid #000000;
border-radius: 3px;
font-size: 18px;
font-weight:500;
width: 180px;
height: 90px;
}
QPushButton:hover {
background-color: #5396C1;
}
QPushButton:disabled {
background-color: #7C828E;
color: #606060;
border-color: #808080;
}
QComboBox {
border: 1px solid #000000;
border-radius: 3px;
font-size: 14px;
width: 180px;
height: 90px;
padding-left: 10px; /* 文字左边距,避免紧贴边缘 */
}
/* 下拉箭头区域 */
QComboBox::drop-down {
border: 1px solid #333333;
border-radius: 3px;
width: 30px; /* 箭头区域宽度 */
background-color: #5396C1;
}
/* 下拉箭头图标 */
QComboBox::down-arrow {
image: url(image/down_white.png);
width: 16px; /* 图标显示宽度 */
height: 16px; /* 图标显示高度 */
}
/* 悬停状态 */
QComboBox:hover {
background-color: #efefef;
}
// 下拉框
QComboBox QAbstractItemView {
border: 1px solid #000000;
border-radius: 3px;
font-size: 14px;
selection-background-color: #5396C1; /* 选中项背景色(稍深) */
selection-color: #ffffff;
}
QSpinBox::up-button {
width: 16px; /* 图标显示宽度 */
height: 16px; /* 图标显示高度 */
border: 1px solid #333333;
border-radius: 3px;
background-color: #5396C1;
}
QSpinBox::up-arrow {
image: url(image/up_white.png);
}
QSpinBox::down-button {
width: 16px; /* 图标显示宽度 */
height: 16px; /* 图标显示高度 */
border: 1px solid #333333;
border-radius: 3px;
background-color: #5396C1;
}
QSpinBox::down-arrow {
image: url(image/down_white.png);
}
false
520
540
101
40
100
40
✓
640
540
101
40
0
0
100
40
✕
10
50
771
471
QTabWidget {
border: none;
background-color: #7B838E;
}
QTabBar::tab {
min-width: 90px;
min-height: 45px;
padding: 4px 10px;
margin-right: 4px;
border: 1px solid #dddddd;
border-bottom: none;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
background-color: #5396C1;
color: #ffffff;
}
QTabWidget::tab-bar {
top: -3px;
left: 10px;
}
QTabBar::tab:selected {
background-color: #6bb1e0;
color: #ffffff;
box-shadow: 0 -3px 8px rgba(44, 125, 232, 0.25);
}
1
整体设置
-1
-1
771
441
条形码
40
20
81
21
内容
40
50
481
31
40
110
81
20
类型
40
140
191
31
-
条形码
-
二维码
260
140
141
31
条形码格式
420
120
261
231
嵌入
60
40
131
41
日期
60
90
131
41
计数器
0
0
800
38
background-color:#4E679F;
-
color:#ffffff;
条形码编辑
ItemGeneralSettings
QWidget
scene/ItemGeneralSettings.h
1
lineEditContent
textChanged(QString)
BarcodeEditor
onContentChanged(QString)
199
144
-130
136
btnFormat
clicked()
BarcodeEditor
onBtnFormatClicked()
412
231
895
230
btnDatetime
clicked()
BarcodeEditor
onBtnDatetimeClicked()
562
255
915
326
btnCounter1
clicked()
BarcodeEditor
onBtnCounterClicked()
553
300
819
382
checkBtn
clicked()
BarcodeEditor
onCheckBtnClicked()
543
558
581
705
closeBtn
clicked()
BarcodeEditor
onCloseBtnClicked()
689
561
708
734
onContentChanged(QString)
onBtnFormatClicked()
onBtnDatetimeClicked()
onBtnCounterClicked()
onCheckBtnClicked()
onCloseBtnClicked()