样式调整

main
risingLee 2026-02-24 17:20:18 +08:00
parent 44a53520a4
commit 55ca42b24f
7 changed files with 14 additions and 0 deletions

View File

@ -113,3 +113,5 @@ A: 确保打包时包含了 `PyQt6.QtWebEngineWidgets`,打包脚本已自动

View File

@ -115,3 +115,5 @@ Measure-Command { Start-Process -FilePath "dist\PCM_Viewer.exe" -Wait }

View File

@ -58,3 +58,5 @@ pip install -r requirements.txt

View File

@ -27,3 +27,5 @@ pause

View File

@ -25,3 +25,5 @@ python build.py

View File

@ -94,3 +94,5 @@ if __name__ == "__main__":

View File

@ -442,6 +442,8 @@ class DashboardItem(QGraphicsRectItem):
class ImageItem(DashboardItem):
def __init__(self, x: float, y: float, w: float, h: float, parent=None):
super().__init__(x, y, w, h, parent)
# 图片组件背景色设为纯白色
self.setBrush(QBrush(QColor(255, 255, 255)))
self._image_path: str = ""
self._pixmap_item = QGraphicsPixmapItem(self)
self._pixmap_item.setPos(0, 0)