DlgBarcodeFormat 0 0 510 380 0 0 Dialog 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); } 280 150 60 31 60 16777215 false QAbstractSpinBox::NoButtons false 1 10 1 70 120 91 23 条形码高度 70 230 111 31 1点 2点 3点 4点 5点 6点 280 230 150 31 0 0 0 0 增加数字行 70 150 111 31 280 70 111 31 1 黑墨 白墨 70 200 76 23 条码宽度 70 40 140 23 条形码类型 70 70 161 31 0 0 140 0 280 40 76 23 墨水类型 Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter 280 120 129 23 显示缩放 370 300 101 50 ✓ checkBtn clicked() DlgBarcodeFormat accept() 412 323 417 460