diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2021-06-11 13:36:01 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-06-14 14:53:10 +0000 |
commit | d3ea746b352e1606a0158c898a53751390479b74 (patch) | |
tree | 5d075c364107c655b25666aedd2cfd57403ea2c6 /src | |
parent | 78613566c64af03e57e66e773db42107ee8bc09b (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.qdoc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/corelib/global/qnamespace.qdoc b/src/corelib/global/qnamespace.qdoc index e1dfc88398..4a5de1774a 100644 --- a/src/corelib/global/qnamespace.qdoc +++ b/src/corelib/global/qnamespace.qdoc @@ -1161,9 +1161,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 |