Files
VX5_KRO_GearPump/scene/DlgBarcodeFormat.ui
T
2026-05-11 09:11:30 +08:00

382 lines
9.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>DlgBarcodeFormat</class>
<widget class="QDialog" name="DlgBarcodeFormat">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>510</width>
<height>380</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Dialog</string>
</property>
<property name="styleSheet">
<string notr="true">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);
}
</string>
</property>
<widget class="QSpinBox" name="BarCodeScale">
<property name="geometry">
<rect>
<x>300</x>
<y>150</y>
<width>60</width>
<height>31</height>
</rect>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="readOnly">
<bool>false</bool>
</property>
<property name="buttonSymbols">
<enum>QAbstractSpinBox::NoButtons</enum>
</property>
<property name="keyboardTracking">
<bool>false</bool>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>10</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>70</x>
<y>120</y>
<width>91</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>条形码高度</string>
</property>
</widget>
<widget class="QComboBox" name="BarCodeDot">
<property name="geometry">
<rect>
<x>190</x>
<y>150</y>
<width>71</width>
<height>31</height>
</rect>
</property>
<item>
<property name="text">
<string>1点</string>
</property>
</item>
<item>
<property name="text">
<string>2点</string>
</property>
</item>
<item>
<property name="text">
<string>3点</string>
</property>
</item>
<item>
<property name="text">
<string>4点</string>
</property>
</item>
<item>
<property name="text">
<string>5点</string>
</property>
</item>
<item>
<property name="text">
<string>6点</string>
</property>
</item>
</widget>
<widget class="QCheckBox" name="checkBoxAddText">
<property name="geometry">
<rect>
<x>330</x>
<y>240</y>
<width>83</width>
<height>16</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string>增加数字行</string>
</property>
</widget>
<widget class="QComboBox" name="BarCodeHeigh">
<property name="geometry">
<rect>
<x>70</x>
<y>150</y>
<width>71</width>
<height>31</height>
</rect>
</property>
</widget>
<widget class="QComboBox" name="comboBoxInkColor">
<property name="geometry">
<rect>
<x>300</x>
<y>70</y>
<width>81</width>
<height>31</height>
</rect>
</property>
<property name="currentIndex">
<number>1</number>
</property>
<item>
<property name="text">
<string>黑墨</string>
</property>
</item>
<item>
<property name="text">
<string>白墨</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_7">
<property name="geometry">
<rect>
<x>190</x>
<y>120</y>
<width>76</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>条码宽度</string>
</property>
</widget>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>70</x>
<y>40</y>
<width>140</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>条形码类型</string>
</property>
</widget>
<widget class="QComboBox" name="BarCodeType">
<property name="geometry">
<rect>
<x>70</x>
<y>70</y>
<width>140</width>
<height>31</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>140</width>
<height>0</height>
</size>
</property>
</widget>
<widget class="QLabel" name="lab123">
<property name="geometry">
<rect>
<x>300</x>
<y>40</y>
<width>76</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>墨水类型</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
</widget>
<widget class="QLabel" name="label_4">
<property name="geometry">
<rect>
<x>300</x>
<y>120</y>
<width>129</width>
<height>23</height>
</rect>
</property>
<property name="text">
<string>显示缩放</string>
</property>
</widget>
<widget class="QPushButton" name="checkBtn">
<property name="geometry">
<rect>
<x>370</x>
<y>300</y>
<width>101</width>
<height>50</height>
</rect>
</property>
<property name="text">
<string>✓</string>
</property>
</widget>
</widget>
<resources/>
<connections>
<connection>
<sender>checkBtn</sender>
<signal>clicked()</signal>
<receiver>DlgBarcodeFormat</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>412</x>
<y>323</y>
</hint>
<hint type="destinationlabel">
<x>417</x>
<y>460</y>
</hint>
</hints>
</connection>
</connections>
</ui>