Important: Please read the Qt Code of Conduct -

How can I set QOpenGLWidget to be transparent

  • 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~

  • 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.

Log in to reply