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
Pick-to: 6.2 6.1
Change-Id: If8281dce4457707a1673aca7a50744d8b231b030
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
Laszlo Agocs 2021-06-11 13:36:01 +02:00
parent a248dd6917
commit cf7df972c3

View File

@ -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