Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Issue related to winId and WA_TranslucentBackground
xiazeyi last edited by xiazeyi
I created a window and set FramelessWindowHint and WA_TranslucentBackground in order to make it have round corners. And I created another widget that is added to this window, the winId of this widget is got to paint outside Qt's paint system. Unfortunately nothing is displayed on the widget, but everyting works correctly if WA_TranslucentBackground of its parent is NOT set to true. The case is like: About FramelessWindowHint and winId.
I tried setting both WA_TranslucentBackground and WA_NoSystemBackground to false for that widget, but it does not work.
Does any expert know the root cause and solution?