Unless I am seriously mistaken it seems the effectiveWinId is not a valid pointer to a NSView or NSViewRef accessible through qtbindings - as is what it seems to be in the Qt code.
As none of the examples does makeKeyAndOrderFront successfully and show + raise don't fully activate the application we need to do this ourselves it seems. (It brings the windows to front, but you have to cmd-tab back and fourth for the application menu to activate as well.)
My understanding from googling is that this issue is a Qt issue, thus the only way around it is to use the native OSX API directly.
Unless I am seriously mistaken it seems the effectiveWinId is not a valid pointer to a NSView or NSViewRef accessible through qtbindings - as is what it seems to be in the Qt code.
As none of the examples does makeKeyAndOrderFront successfully and show + raise don't fully activate the application we need to do this ourselves it seems. (It brings the windows to front, but you have to cmd-tab back and fourth for the application menu to activate as well.) My understanding from googling is that this issue is a Qt issue, thus the only way around it is to use the native OSX API directly.
But sure, enlighten me if I'm lost.
Crash (modified examples/mainwindow/application/main.rb):