diff options
| author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-15 16:30:25 +0200 |
|---|---|---|
| committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-05-16 13:37:38 +0200 |
| commit | 8e94af2ed0577936cabaffab336014c1be9002af (patch) | |
| tree | e058a5431475f91d07fcaeab3344d39508b1210d /src/widgets/doc/snippets/dialogs/dialogs.cpp | |
| parent | 322387ce7b5e768d6bd0b8dda1b8f9b704e88f47 (diff) | |
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>
Diffstat (limited to 'src/widgets/doc/snippets/dialogs/dialogs.cpp')
0 files changed, 0 insertions, 0 deletions
