I am working on a GUI application which runs on RedHat 7.2, with Qt 5.6, originally the graphics were all rendered using Qt native functions, however the video display and other widgets show tearing.
So I went about re-writing all the graphics replacing the QWidget based classes with classes derived from QOpenGLWidget and QOpenGLFunctions.
The tearing is still present, I've read online that calling:
window.setAnimating(true);
Use OpenGLWindow::setAnimating(true) for render() to be called at the vertical refresh rate, assuming vertical sync is enabled in the underlying OpenGL drivers.
Taken from: OpenGL Window Example
However I can't find an equivalent method for QOpenGLWidget, is there an equvalent? How do I ensure that QOpenGLWidgets are only rendered with vsync?