[Development] QMacCocoaViewContainer changes?
Timur Pocheptsov
timur.pocheptsov at qt.io
Fri Feb 17 09:41:13 CET 2017
Ok, don't hesitate to report it.
qnsview_cast is using Obj-C RTTI. An object with a type inheriting QNSView will pass isKindOfClass:[QNSView class] test.
Best regards,
Timur.
________________________________
From: René J.V. Bertin <rjvbertin at gmail.com>
Sent: Friday, February 17, 2017 9:32:02 AM
To: Timur Pocheptsov
Cc: development at qt-project.org; Harald Sitter
Subject: Re: [Development] QMacCocoaViewContainer changes?
On Friday February 17 2017 05:39:44 Timur Pocheptsov wrote:
Hello Timur,
I was planning to, but after I gather some more observations, to get an idea if indeed the foreign NSView gets released before calling the QMacCocoaViewContainer dtor, and where. I also want to try to get some certainty that we're not talking simply talking about a regression in Qt Designer.
What is definitely new in 5.8 is qnsview_cast(), which I think warns a bit too enthusiastically about casting something not a QNSView*. It's not related to this crash, but shouldn't it at least accept instances of classes that inherit QNSView*? A simple cast won't fool the ObjC runtime anyway.
R.
>Hello,
>
>
>could you, please, create a JIRA ticket for this (if not done yet)?
>
>I remember some changes - but it was 5.6, so 5.7.1 would be also broken then ...
>
>
>Best regards,
>
> Timur.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20170217/ca1f1081/attachment.html>
More information about the Development
mailing list