Seems like the code just depends on the (undefined) contents of the stack. Alter the code a little and it'll crash in a perfectly normal fashion.

I also don't see how it's even Qt related, never mind "more advanced Qt" related.