We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2bad35 commit 7375bfbCopy full SHA for 7375bfb
qwt/text.py
@@ -297,7 +297,10 @@ def findAscent(self, font):
297
w = pm.width()
298
linebytes = w * 4
299
for row in range(img.height()):
300
- line = img.scanLine(row).asstring(linebytes)
+ if PYSIDE2:
301
+ line = bytes(img.scanLine(row))
302
+ else:
303
+ line = img.scanLine(row).asstring(linebytes)
304
for col in range(w):
305
color = struct.unpack("I", line[col * 4 : (col + 1) * 4])[0]
306
if color != white.rgb():
0 commit comments