You are clearly on Windows. Your error number is 0xC0000005 in hex. Access violations from developer code are usually the result of using an uninitialised or invalid pointer. That it didn't crash (not the same as worked) in Qt4 is probably dumb luck (or less protective compiler output).