diff --git a/share/qtcreator/debugger/qttypes.py b/share/qtcreator/debugger/qttypes.py index 5ce5531c682..0dd094906b8 100644 --- a/share/qtcreator/debugger/qttypes.py +++ b/share/qtcreator/debugger/qttypes.py @@ -821,8 +821,12 @@ def qdump__QImage(d, value): d.putValue('(invalid)') return - (ref, width, height, depth, nbytes, padding, devicePixelRatio, colorTable, - bits, iformat) = d.split('iiiii@dppi', imageData) + if d.ptrSize() == 8: + (ref, width, height, depth, nbytes, padding, devicePixelRatio, colorTable, + bits, iformat) = d.split('iiiii@dppi', imageData) + else: + (ref, width, height, depth, nbytes, devicePixelRatio, colorTable, + bits, iformat) = d.split('iiiiidppi', imageData) d.putValue('(%dx%d)' % (width, height)) d.putNumChild(1)