From e03e2658e4e6b5e3386f22f36dbb561009a49901 Mon Sep 17 00:00:00 2001 From: Laszlo Agocs Date: Fri, 11 Jun 2021 13:36:01 +0200 Subject: 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 (cherry picked from commit cf7df972c3015a160986bcd3f1cbd1f01297335d) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/global/qnamespace.qdoc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3