MainWidget 0 0 800 558 0 0 16777215 16777215 0 0 0 0 0 background-color:#BCBFC4; 7 7 800 16777215 background-color:#6A7289; 30 10 10 0 0 QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;} 新建文件 QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;} 编辑当前文件 130 40 QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;} 调入文件喷印 130 40 QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;} 主指令单 130 40 QPushButton { background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7); border: none; border-radius: 8px; font-size: 14px; text-align: center; padding-top: 20px; padding-bottom: 1px;} 管理器 130 40 QPushButton {background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #A5ABB7);border: none;border-radius: 8px;font-size: 14px;text-align: center;padding-top: 20px;padding-bottom: 1px;} 信息 130 40 QScrollBar::horizontal{ height: 8px; } QWidget{ border: 0px solid; } QScrollArea { padding-bottom: 1px; } QScrollBar::handle:horizontal { background-color: rgb(175, 175, 175); border-radius:4px; } /* 完全删除上下箭头(sub-line 和 add-line) */ QScrollBar::sub-line:horizontal, QScrollBar::add-line:horizontal { height: 0px; /* 高度为0,看不见也点不到 */ subcontrol-position: top; /* 保留位置以避免布局偏移 */ } QScrollBar::sub-line:horizontal { top: 0px; } QScrollBar::add-line:horizontal { bottom: 0px; } Qt::ScrollBarAlwaysOff Qt::ScrollBarAsNeeded true 0 0 780 169 16777215 300 9 0 0 520 0 150 130 150 130 开始打印 130 130 130 130 200 0 200 130 background-color:#BBBBBD;border-radius:3px; color:#000000;font-size:18px; 速度 米/分 Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter -1 Qt::Vertical 20 40 color:#3CB371;font-size:18px; 当前 Qt::Vertical 20 20 color:#E72F28;font-size:18px; 最大 Qt::Vertical 20 5 color:#3CB371;font-size:24px; 999.99 Qt::Vertical 20 20 color:#E72F28;font-size:24px; 999.99 Qt::Vertical 20 8 0 130 16777215 130 停止打印 130 130 130 130 200 150 200 150 background-color:#BBBBBD;border-radius:3px; color:#000000;font-size:18px; 产品计数器 Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter -1 -1 75 true color:#000000;font-size:28px;font-weight:bold; 0 Qt::AlignCenter 达到数量后停止: color:#000000;font-size:28px;font-weight:bold; 0 Qt::AlignRight Qt::Vertical 20 40 0 130 border:0px; :/image/power.png:/image/power.png 70 70 70 70 200 0 200 140 QFrame::NoFrame QFrame::Plain 0 50 Qt::AlignCenter Qt::AlignCenter 5 1 0 150 95 150 100 :/image/RePipeOpen.png:/image/RePipeOpen.png 70 70 70 70 0 30 16777215 30 喷嘴开启 Qt::AlignCenter Qt::Vertical 20 40 0 150 95 150 100 :/image/RePipeClose.png:/image/RePipeClose.png 70 70 70 70 0 30 16777215 30 喷嘴关闭 Qt::AlignCenter 0 PrintTextDisplay QWidget
PrintTextDisplay.h
1