qt6-bb10/examples/widgets/widgets/shapedclock
Volker Hilsheimer 8e94af2ed0 Revamp the shapedclock example
Rename it to "Translucent Background", as that's what the example shows
how to do. And modern applications shouldn't use a (binary) mask to
create shaped windows. Instead, set the TranslucentBackground attribute,
don't paint pixels that should be fully transparent and use anti-aliased
or semi-opaque painting for pixels that should be translucent.

Adjust the example and documentation accordingly. Move the statment that
widget masks create coarse visual clipping to the QWidget::setMask
documentation.

Pick-to: 6.5
Change-Id: Id49d854093f2cb471afb178d32723081c7543543
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2023-05-16 13:37:38 +02:00
..
CMakeLists.txt Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
main.cpp Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
shapedclock.cpp Revamp the shapedclock example 2023-05-16 13:37:38 +02:00
shapedclock.h Revamp the shapedclock example 2023-05-16 13:37:38 +02:00
shapedclock.pro