- connect( cw, SIGNAL(imageReady(QImage)), this, SLOT(saveImage(QImage)));
+ connect( cwcam, SIGNAL(imageReady(QImage)), this, SLOT(saveImage(QImage)));
+
+ // To trigger the startSnap(), we hook our previously created
+ // pushbutton to that SLOT.
+ connect( trigger, SIGNAL(clicked()), cwcam, SLOT(startSnap()));