After upgrading to Qt 5.9.4, many elements in my application started to become invisible when hovering the mouse over them, or tabbing the focus.
I was able to track down the offending code. It seems QPropertyAnimation with a QGraphicsOpacityEffect causes this.
The problem arises only when building against 5.9.4 or 5.10.1. When building against 5.9.3 or 5.10.0, there's no issue.
All platforms I tested on are affected (Windows, macOS, Linux, Android.)
Code that reproduces the issue:
Hover the mouse over the button. It will become invisible.
The commented-out line (move(10, 10)) might give some more insight as to what's happening, since if moving the button near the top-left edge of the window, it starts to become visible again.
|For Gerrit Dashboard: QTBUG-66387|
|223168,2||Revert "Set sharedPainter correctly for QGraphicsEffect"||5.11||qt/qtbase||Status: MERGED||+2||0|
|223863,2||Revert "Set sharedPainter correctly for QGraphicsEffect"||5.9.5||qt/qtbase||Status: MERGED||+2||0|