There already a camera application(qtcam) integrated qtquick and v4l2, please try clone the source from the below link,
https://github.com/econsysqtcam/qtcam.git
Application available in launchpad also for ubuntu 12.04 & 14.04