summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-06-11 13:36:01 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-06-14 16:54:12 +0000
commite03e2658e4e6b5e3386f22f36dbb561009a49901 (patch)
tree5487ba110ad625bef09568e08fd5b20e9c2beeab /src
parentfc47a6c701fc0f81f14e082b878553add99a90dd (diff)
Document that WA_TranslucentBackground will not have an effect
...if changed after the widget is shown. Just documents the current state of things. Task-number: QTBUG-60822 Task-number: QTBUG-59126 Change-Id: If8281dce4457707a1673aca7a50744d8b231b030 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit cf7df972c3015a160986bcd3f1cbd1f01297335d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/global/qnamespace.qdoc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc
index 345993049e..2b25f145df 100644
--- a/src/corelib/global/qnamespace.qdoc
+++ b/src/corelib/global/qnamespace.qdoc
@@ -1172,9 +1172,12 @@
\value WA_TranslucentBackground Indicates that the widget should have a
translucent background, i.e., any non-opaque regions of the widgets will be
translucent because the widget will have an alpha channel. Setting this
- flag causes WA_NoSystemBackground to be set. On Windows the
- widget also needs the Qt::FramelessWindowHint window flag to be set.
- This flag is set or cleared by the widget's author.
+ flag causes WA_NoSystemBackground to be set. On Windows the widget also
+ needs the Qt::FramelessWindowHint window flag to be set. This flag is set
+ or cleared by the widget's author. As of Qt 5.0, toggling this attribute
+ after the widget has been shown is not uniformly supported across
+ platforms. When translucent background is desired, set the attribute early
+ when creating the widget, and avoid altering it afterwards.
\value WA_UnderMouse Indicates that the widget is under the mouse cursor.
The value is not updated correctly during drag and drop operations. There