diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-03-07 13:32:28 +0100 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2023-03-28 13:22:11 +0100 |
commit | a4bd121125dade1a0c292284836ea52617ba77c0 (patch) | |
tree | eec3f0961ffbea3d1a9526e8cfd5e9f9de6f9363 /tests/auto/widgets | |
parent | 6736118b8c1d9ca1517f0539bd93acc6f99732c1 (diff) |
macOS: Create NSView as initially hidden, to match QWindow behavior
Initially attempted in 096b56f336e5bb994d46f073d55496d36d38e6b1,
but that broke QQuickWindow::grabWindow(), which at the time was
not prepared for grabbing non-visible windows.
This is no longer an issue, as QQuickWindow::grabWindow() has fallback
logic for non-renderable windows. QWidget::grab() also works fine,
as it grabs from the backingstore directly.
For top level windows we apply the visibility state to both the
NSWindow (orderIn/Out), and to the NSView (hidden=YES/NO).
Pick-to: 6.5
Change-Id: I617b292ca6bfba66e65b55941c5b002e415da88d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/widgets')
0 files changed, 0 insertions, 0 deletions