View QImage during one-step

I am debugging a huge Qt application with hundreds of classes, dirty code, etc. Tracking the error, I want to take a one-step step in gdb (kdbg, ddd, whatever), watching what gets pulled into QImage using QPainter, which is transferred from method to method. Somewhere this was done when they gave him bad information. Usually I can get the final QImage written to the .png file.

Is there a way to see the image is in QImage when stopped in the debugger?

By the way, this uses Qt4.3, which is a bit old, but we are stuck at the moment. If the new Qt offers some advantage, I have ways to hack it (like others, seeing that this question may be the last).

+4
source share
1 answer

This is one example in Peek and Poke, Vol. 3 in an article by Qt Labs Blog .

+5
source

Source: https://habr.com/ru/post/1334125/


All Articles