Skip to content
Snippets Groups Projects
Commit ac35f9c4 authored by Tor Arne Vestbø's avatar Tor Arne Vestbø
Browse files

macOS: Mark the widget's container as embedded when placed into NSMenuItem


Otherwise we'll end up creating a NSPanel for the QMacNativeWidget which is
never closed, even if the backing NSView is moved to a new superview.

Ideally this would be based on [NSView viewDidMoveToSuperview] and
[NSView viewDidMoveToWindow], with retain/releases of the corresponding
NSWindow, but that needs more research, especially as AppKit on macOS
10.13 will always keep a strong reference to the NSWindow.

Task-number: QTBUG-63443
Change-Id: I9eec5ea871373d00dedf154600bf7005898cf37a
Reviewed-by: default avatarMorten Johan Sørvig <morten.sorvig@qt.io>
parent ed9340a9
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment