Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.2
-
None
Description
This happens due a combination of
setAttribute(Qt::WA_TranslucentBackground, true);
and the border widget ( using a QGraphicsDropShadowEffect )
Removing either one "solves" the problem (together with a removal of a desired effect).
Steps to reproduce:
1) Compile and run the example
2) Click the widget having 'Before Showing other widget'
3) Another widget is shown. Close it. (Showing this dialog is not relevant for the issue)
4) Now a stacked widget gets a new current widget and it should state
" After Showing other widget", but "Before Showing other widget" is again painted.
5) (Repeat without WA_TranslucentBackground or having just a plain inherited widget and notice that these parts are central for the issue).
The previous state is painted. The stacked widget knows about the correct state and it is a matter of missing update / correct painting. (Other controls like buttons would be shown on hover)
This problem does not occur on Mac (and haven't been tried on Linux).