import QtQuick 1.1 import com.nokia.meego 1.0 import QtMultimediaKit 1.1 import "file:///usr/lib/qt4/imports/com/meego/UIConstants.js" as UIConstants PageStackWindow { id: appWindow initialPage: mainPage Page { id: mainPage Component.onCompleted: { theme.inverted = true } Camera { id: primaryCamera focus: visible anchors.centerIn: parent width: parent.width / 2 height: parent.height / 2 captureResolution: "1280x720" exposureMode: Camera.ExposureAuto flashMode: Camera.FlashOff onImageCaptured: debuglabel.text = "Image saved! " + Date().toString() onCaptureFailed: debuglabel.text = "ERROR!" + Date().toString() } Label { id: debuglabel text: "I'm the debug label" } Timer { interval: 10000; running: true; repeat: true onTriggered: { debuglabel.text = Date().toString(); primaryCamera.captureImage(); } } } }