Important: Please read the Qt Code of Conduct -

QPushButton over QGLWidget works wrong

  • Hi to everybody, I need to show a transparent button over a GLWidget, the transparent button works well when it's used over a Widget, but the behaviour over the QGLWidget it's not good. I have positioned the button over the QGLWidget but the button not respects the color, also when I press the button the pushbutton color change..
    Looks like if the QGLWidget doesn't update the button (and I think that that behaviour its ok), so, How I solve this?
    Can I put the button over the GLWidget and expect that buttons works like over a general Widget?


  • I don't think QGlWidget supports having normal QWidget as children.

  • Ok, but how I accomplish that? How can I show the button over the GLWidget?? Has somebody an idea about that?

Log in to reply