From 7efa2b408f298ce0321e0439724607f60cc47b2d Mon Sep 17 00:00:00 2001 From: t0mpr1c3 Date: Sat, 24 Feb 2024 23:28:27 -0500 Subject: [PATCH] fix colours in main window (#603) --- src/main/python/ayab/scene.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/python/ayab/scene.py b/src/main/python/ayab/scene.py index b88af91d..2db42b23 100644 --- a/src/main/python/ayab/scene.py +++ b/src/main/python/ayab/scene.py @@ -79,7 +79,7 @@ def refresh(self): else: im = self.ayabimage.image data = im.convert("RGBA").tobytes("raw", "RGBA") - qim = QImage(data, width, height, QImage.Format_ARGB32) + qim = QImage(data, width, height, QImage.Format_RGBA8888) pixmap = QPixmap.fromImage(qim) # add pattern and locate according to alignment