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>
25 lines
563 B
CMake
25 lines
563 B
CMake
# Copyright (C) 2023 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
qt_internal_add_manual_test(embeddedwindows
|
|
SOURCES
|
|
main.cpp
|
|
LIBRARIES
|
|
Qt::Gui
|
|
)
|
|
|
|
qt_internal_extend_target(embeddedwindows CONDITION WIN32
|
|
SOURCES
|
|
app.manifest
|
|
)
|
|
|
|
if(QT_FEATURE_xcb)
|
|
target_link_libraries(embeddedwindows PRIVATE XCB::XCB)
|
|
endif()
|
|
|
|
if(APPLE)
|
|
enable_language(OBJCXX)
|
|
set_source_files_properties(main.cpp PROPERTIES LANGUAGE OBJCXX)
|
|
set_property(TARGET embeddedwindows PROPERTY PROPERTY MACOSX_BUNDLE TRUE)
|
|
endif()
|