Motion Detection using Qt and OpenCV