Qt6 topics merged with General

Having problem with OpenGL in QT 5.2

  • Hi people,

    I'm having problem to render in OpenGL with QT 5.2....

    It seems that the depth buffer is with problem. Event when blending is disabled, it' render things behind others, causing a strange render....

    I'd check the Triangle Example of the SDK, to see if the problem is just with my code.. And when a create another triangle, the application has the same error.. Then I suppose that it's a QT bug.

    Someone can help?? I'm using QT 5.2 and creating a window extending from QWindow and QOpenGLFunctions.

    Renato Dias Viana

  • Resolved the problem. It's necessary to configure the QSurfaceFormat, to use Double Buffer. I does not came by default.

Log in to reply