I am still not able to track down the segfault, it is clear that for some reason the Qt window which is passed around as awin_idis getting destroyed and then the Ogre system is trying to use it. It is not null, so it might be a memory corruption issue. I'll keep looking into it...