See owncloud/client#6930 for a crash report pointing to an invalid pointer being used when using (NSView*)winId. The updated code unfortunately uses private Qt headers but retrieves the NSView in the same way that QMacNativeWidget does, which tests indicate is more robust. Thanks to @yan12125 for testing.
0dc7bc3