Running Valgrind on a code sample which does not have uninitailised variables results in errors thrown by valgrind (i.e. "Conditional jump or move depends on uninitialised value(s)").
Attached you can find the valgrind log (found under qt-valgrind-min.tar.gz/valgrind-min-fail/results) , the source code and the build instructions. The executable associated with the code is also present. It's the Qt version delivered with Ubuntu 21.04.