I don't think there's a way of doing this with the public API of Qt, so you have to fall back to platform-specific code like <code>backtrace()</code> on glibc and <code>CaptureStackBackTrace()</code> / <code>StackWalk64()</code>on msvc.