样式调整
parent
44a53520a4
commit
55ca42b24f
|
|
@ -115,3 +115,5 @@ Measure-Command { Start-Process -FilePath "dist\PCM_Viewer.exe" -Wait }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,3 +58,5 @@ pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,3 +94,5 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2
main.py
2
main.py
|
|
@ -442,6 +442,8 @@ class DashboardItem(QGraphicsRectItem):
|
||||||
class ImageItem(DashboardItem):
|
class ImageItem(DashboardItem):
|
||||||
def __init__(self, x: float, y: float, w: float, h: float, parent=None):
|
def __init__(self, x: float, y: float, w: float, h: float, parent=None):
|
||||||
super().__init__(x, y, w, h, parent)
|
super().__init__(x, y, w, h, parent)
|
||||||
|
# 图片组件背景色设为纯白色
|
||||||
|
self.setBrush(QBrush(QColor(255, 255, 255)))
|
||||||
self._image_path: str = ""
|
self._image_path: str = ""
|
||||||
self._pixmap_item = QGraphicsPixmapItem(self)
|
self._pixmap_item = QGraphicsPixmapItem(self)
|
||||||
self._pixmap_item.setPos(0, 0)
|
self._pixmap_item.setPos(0, 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue