Important: Please read the Qt Code of Conduct -

Is there anything opposite to InitializeGL().. something like deleteGl()?

  • Is there anything which is exactly opposite to InitializeGL()? that we can call..?

    Actually I am having particular requirement that on occurrence of an event I should stop drawing in PainGL().

    I tried makeCurrent() but it still keeps on drawing, and gives seg-fault in QGLWidget::glDraw() while swapping buffers.

    How do I go about it?

  • Lifetime Qt Champion


    I'm not aware of such a function, but you could use a boolean flag to check at the top of paintGL.

Log in to reply