Qt and vsync/tearing
Does anyone know of an easy way to enforce vsync in Qt, when displaying an image onto a QLabel
? Basically, I'开发者_如何学Cm rendering a stream of images from a processed video clip (hence not using Phonon multimedia), and the framerate is very high. Unfortunately, this is giving a lot of tearing.
Any help much appreciated.
Try using QtOpenGL. You can implement your widget over QGLWidget. It will render using opengl, that will sinc to vblank if you set this option in your os.
精彩评论