qt6-bb10/examples/widgets
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
..
animation Examples: Add missing include guards 2023-02-01 18:12:36 +00:00
desktop Fix qtbase build when all deprecated code are disabled 2023-02-22 22:27:35 +08:00
dialogs Move findfiles example into manual tests 2023-02-09 00:23:34 +01:00
doc Revamp the shapedclock example 2023-05-16 13:37:38 +02:00
draganddrop Fix qtbase build when all deprecated code are disabled 2023-02-22 22:27:35 +08:00
effects Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
gallery Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
gestures Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
graphicsview Remove unused variable/code 2023-04-07 11:12:34 +02:00
itemviews Remove unused variable/code 2023-04-07 11:12:34 +02:00
layouts Remove showMaximized() workaround for Android in examples 2022-12-02 15:53:37 +01:00
mainwindows mainwindow example: Fix implicit conversion from qsizetype warnings 2023-03-23 16:39:19 +01:00
painting examples: port widget examples to new connection style 2023-02-25 22:11:57 +01:00
qnx/foreignwindows Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
richtext examples: Connect Quit action to QCoreApplication::quit, not QWidget::close 2023-02-20 15:18:18 +01:00
scroller Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
tools Fix CMakeLists.txt of echo plugin example 2023-04-06 19:36:48 +02:00
touch Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
tutorials Doc cleanup: remove old gettingStarted tutorial, move doc file 2023-05-15 23:54:01 +02:00
widgets Revamp the shapedclock example 2023-05-16 13:37:38 +02:00
windowcontainer Examples: Use PRIVATE CMake linkage 2022-11-30 14:48:50 +01:00
CMakeLists.txt Examples: Use Qt6:: to qualify Qt CMake packages 2022-11-17 19:59:11 +01:00
widgets.pro Move QStateMachine from QtCore to QtScxml 2020-08-24 20:10:25 +02:00