From ba6615673cc20b3422ef816fd376a83152a4285e Mon Sep 17 00:00:00 2001 From: clst <293237+clst@users.noreply.github.com> Date: Mon, 28 Jul 2025 15:48:56 +0200 Subject: [PATCH] fix: Qt6, creating QColor from Float --- visram/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/visram/app.py b/visram/app.py index 3a76f0f..67a0743 100644 --- a/visram/app.py +++ b/visram/app.py @@ -174,7 +174,7 @@ def drawWedge(self, color, theta1, theta2, radius1, radius2, pid, # move back down to starting corner, closing path path.arcTo(innerRect, theta2, theta1 - theta2) - brush = QtGui.QBrush(QtGui.QColor(*(c * 255 for c in color))) + brush = QtGui.QBrush(QtGui.QColor.fromRgbF(*(color))) item = ProcessWedge(pid, path) item.setPen(QtGui.QPen(QtCore.Qt.NoPen))