Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How can I set QOpenGLWidget to be transparent
Azmat last edited by
Hello, everyone.I am trying to set the background of QOpenGLWidget to be transparent,but no solution(setPalette\setCompositionMode\setStyleSheet\setAttribute(Qt::WA_TranslucentBackground, true);) worked.Please give me some advise~
gde23 last edited by
OpenGL Widgets do not support transparency since they are rendered differently.
However you can do some tricks by rendering the widget behind and then set it as background of your openGL scene.