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:
parent
a96e0eddd9
commit
322e55ff45
@ -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()
|
||||
|
12
tests/manual/embeddedwindows/app.manifest
Normal file
12
tests/manual/embeddedwindows/app.manifest
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user