I can't answer your question but I have a solution.

Those messages might not even be output by the Qt library but the low level library it uses.

Why not redirect the output of your program to a log file then analyze the log later with another program.

your_image_tester > log.txt

log_analyzer log.txt