开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜