If you remove the Qt stuff from the above example then there is nothing to breakpoint on, as its probably all optimised out.