setting the flag Qt::WindowStaysOnTopHint at runtime does not always work if it works then unsetting same flag still shows windows on top.
Some time the widget will not stay on top, although the flag is set. It will disappear when click outside the application, or can be overlapped (z-order) by another widgets.
This can be easily reproducible with Qt's windowflags example:
|For Gerrit Dashboard: QTBUG-69515|
|235138,22||xcb: implement missing bits from ICCCM 4.1.4 WM_STATE handling||5.15||qt/qtbase||Status: NEW||+2||0|