Enable transparent windows with embeddedwindows example on Windows

The embeddedwindows example illustrates embedding child windows with
transparency enabled. On Windows, this is implemented using layered
windows with the WS_EX_LAYERED extended window style. To make this work
with child-windows, we need to mark the application as at least Windows
8 aware.

Change-Id: I3a2e4f6018b3d2aee883ab755b63ad75bc8c80e8
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
(cherry picked from commit 4e7f5c43a3be609502ccc15861319503dc2c842b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Jøger Hansegård 2024-08-14 12:06:08 +02:00 committed by Qt Cherry-pick Bot
parent a96e0eddd9
commit 322e55ff45
2 changed files with 17 additions and 0 deletions

View File

@ -8,6 +8,11 @@ qt_internal_add_manual_test(embeddedwindows
Qt::Gui
)
qt_internal_extend_target(embeddedwindows CONDITION WIN32
SOURCES
app.manifest
)
if(QT_FEATURE_xcb)
target_link_libraries(embeddedwindows PRIVATE XCB::XCB)
endif()

View File

@ -0,0 +1,12 @@
<!--
Copyright (C) 2024 The Qt Company Ltd.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
-->
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<compatibility xmlns="urn:schemas-microsoft-com:compatibility.v1">
<application>
<!-- Supports Windows 10 and 11 -->
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
</application>
</compatibility>
</assembly>