QtVideoWriter requires libx264 and ffmpeg build with libx264 support.
Simple example of generating a video from a set of images using Qt and ffmpeg