TestPrintWidget 0 0 800 549 800 16777215 Testprint QWidget{ font-size: 16px; } 0 0 0 0 0 0 0 0 0 0 0 0 0 background-color:#C4C5C9; 6 8 8 0 0 0 0 150 70 16777215 70 Qt::LeftToRight QToolButton { background-color: #efefef; border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QToolButton:hover { background-color: #dcdcdc; } QToolButton:pressed { background-color: #d0d0d0; } 文字 :/image/icon_text.png:/image/icon_text.png 125 30 false false false Qt::ToolButtonTextUnderIcon false 0 0 0 70 16777215 70 QToolButton { background-color: #efefef; border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QToolButton:hover { background-color: #dcdcdc; } QToolButton:pressed { background-color: #d0d0d0; } 条形码 :/image/icon_code.png:/image/icon_code.png 125 30 true Qt::ToolButtonTextUnderIcon 0 0 0 70 16777215 70 QToolButton { background-color: rgb(239, 239, 239); border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QToolButton:hover { background-color: #dcdcdc; } QToolButton:pressed { background-color: #d0d0d0; } 图标 :/image/icon_shape.png:/image/icon_shape.png 125 30 true Qt::ToolButtonTextUnderIcon 0 0 0 70 16777215 70 QToolButton { background-color: rgb(239, 239, 239); border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QToolButton:hover { background-color: #dcdcdc; } QToolButton:pressed { background-color: #d0d0d0; } 日期时间 :/image/icon_time.png:/image/icon_time.png 125 30 true Qt::ToolButtonTextUnderIcon 0 0 0 70 16777215 70 QToolButton { background-color: rgb(239, 239, 239); border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QToolButton:hover { background-color: #dcdcdc; } QToolButton:pressed { background-color: #d0d0d0; } 计数器 :/image/icon_num.png:/image/icon_num.png 125 30 true Qt::ToolButtonTextUnderIcon 0 0 0 70 16777215 70 QToolButton { background-color: rgb(239, 239, 239); border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QToolButton:hover { background-color: #dcdcdc; } QToolButton:pressed { background-color: #d0d0d0; } 轮班 :/image/icon_clock.png:/image/icon_clock.png 125 30 true Qt::ToolButtonTextUnderIcon false Qt::Vertical 20 40 0 0 0 0 0 0 86 background-color:#828E9E; 90 QPushButton { background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF); border: 1px solid #a0a0a0; border-radius: 8px; padding: 8px 12px; min-width: 90px; min-height: 50px; } QPushButton:hover { background-color: #d0d0d0; } QPushButton:pressed { background-color: #c0c0c0; } 保存 :/image/disk.svg:/image/disk.svg 60 60 QPushButton { background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF); border: 1px solid #a0a0a0; border-radius: 8px; padding: 8px 12px; min-width: 90px; min-height: 50px; } QPushButton:hover { background-color: #d0d0d0; } QPushButton:pressed { background-color: #c0c0c0; } 另存为 :/image/saveAs.png:/image/saveAs.png 62 62 QPushButton { background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF); border: 1px solid #a0a0a0; border-radius: 8px; padding: 8px 12px; min-width: 90px; min-height: 50px; } QPushButton:hover { background-color: #d0d0d0; } QPushButton:pressed { background-color: #c0c0c0; } 打印设置 :/image/set1.png:/image/set1.png 60 60 QPushButton { background: qlineargradient(x1: 0.5, y1: 0, x2: 0.5, y2: 1, stop: 0 #6F9CD6, stop: 1 #FFFFFF); border: 1px solid #a0a0a0; border-radius: 8px; padding: 8px 12px; min-width: 90px; min-height: 50px; } QPushButton:hover { background-color: #d0d0d0; } QPushButton:pressed { background-color: #c0c0c0; } 图元设置 :/image/set2.png:/image/set2.png 60 60 background-color:#C4C5C9; 80 6 8 8 0 0 0 74 QPushButton { background-color: #ffffff; border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QPushButton:hover { background-color: #dcdcdc; } QPushButton:pressed { background-color: #d0d0d0; } 复制 :/image/text.png:/image/text.png 60 30 0 0 QPushButton { background-color: #ffffff; border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QPushButton:hover { background-color: #dcdcdc; } QPushButton:pressed { background-color: #d0d0d0; } 粘贴 :/image/folder.png:/image/folder.png 60 30 0 74 16777215 74 QPushButton { background-color: #ffffff; border: 1px solid #a8a8a8; border-radius: 8px; padding: 6px; } QPushButton:hover { background-color: #dcdcdc; } QPushButton:pressed { background-color: #d0d0d0; } 删除 :/image/close.png:/image/close.png 60 30 0 40 -1 QComboBox { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; padding: 4px 20px 4px 8px; icon-size:60px 60px; } QComboBox::drop-down { width: 30px; } 1 60 5 dot 7 dot 9 dot 12 dot 16 dot 24 dot 32 dot 0 40 16777215 40 QComboBox { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; padding: 4px 20px 4px 8px; icon-size:60px 60px; } QComboBox::drop-down { width: 30px; } 60 UK :/Demo/image/uk_flag.png:/Demo/image/uk_flag.png US :/Demo/image/flag.png:/Demo/image/flag.png 0 168 0 0 0 0 0 0 170 QGraphicsView QScrollBar:horizontal { height: 28px; /* 水平滚动条高度,调大方便拖拽 */ background: #f0f0f0; /* 轨道背景色(可自行调整) */ } QGraphicsView QScrollBar::handle:horizontal { background: #b0b0b0; /* 滑块颜色 */ min-width: 60px; /* 滑块最小宽度,防止太小 */ border-radius: 6px; } Qt::ScrollBarAlwaysOn 0 0 16777215 150 background-color:#828E9E; 200 4 6 6 0 0 0 0 16777215 30 QLineEdit { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; /*padding: 4px 8px; min-height: 32px;*/ font-size: 16px; } 16777215 34 QPushButton { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; min-width: 40px; min-height: 32px; font-size: 16px; font-weight: bold; } QPushButton:hover { background-color: #dcdcdc; } QPushButton:pressed { background-color: #d0d0d0; } << 16777215 34 QPushButton { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; min-width: 40px; min-height: 32px; font-size: 16px; font-weight: bold; } QPushButton:hover { background-color: #dcdcdc; } QPushButton:pressed { background-color: #d0d0d0; } >> 8 10 10 0 0 16777215 88 QLabel { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; padding: 4px 8px; min-height: 30px; font-size: 14px; color: #333333; } Y:9 16777215 100 QLabel { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; padding: 4px 8px; min-height: 30px; font-size: 14px; color: #333333; } X:105 4 QPushButton { background-color: #87CEEB; border: 1px solid #4682B4; border-radius: 4px; min-width: 40px; min-height: 40px; font-size: 18px; font-weight: bold; color: #00008B; } QPushButton:hover { background-color: #ADD8E6; } QPushButton:pressed { background-color: #B0E0E6; } ← QPushButton { background-color: #87CEEB; border: 1px solid #4682B4; border-radius: 4px; min-width: 40px; min-height: 40px; font-size: 18px; font-weight: bold; color: #00008B; } QPushButton:hover { background-color: #ADD8E6; } QPushButton:pressed { background-color: #B0E0E6; } → QPushButton { background-color: #87CEEB; border: 1px solid #4682B4; border-radius: 4px; min-width: 40px; min-height: 40px; font-size: 18px; font-weight: bold; color: #00008B; } QPushButton:hover { background-color: #ADD8E6; } QPushButton:pressed { background-color: #B0E0E6; } ↓ QPushButton { background-color: #87CEEB; border: 1px solid #4682B4; border-radius: 4px; min-width: 40px; min-height: 40px; font-size: 18px; font-weight: bold; color: #00008B; } QPushButton:hover { background-color: #ADD8E6; } QPushButton:pressed { background-color: #B0E0E6; } ↑ 0 40 16777215 88 QLabel { background-color: #e5e5e5; border: 1px solid #a8a8a8; border-radius: 2px; padding: 4px 8px; min-height: 30px; font-size: 14px; color: #333333; } ID:1 62 84 Ubuntu -1 QPushButton { background-color: #E6F7FF; border: 1px solid #87CEEB; border-radius: 4px; min-width: 60px; /*min-height: 40px;*/ font-size: 24px; font-family: "Ubuntu"; color: #228B22; } QPushButton:hover { background-color: #D1E9FF; } QPushButton:pressed { background-color: #BAE7FF; } ✓ 32 32 MyView QGraphicsView
scene/myview.h