trigger->setText("Take picture");
// Create the widget, setting the Main window (this) as its parent.
- QOpenCamWidget *cwcam = new QOpenCamWidget(this);
+ QOpenCamWidget *cwcam = new QOpenCamWidget(this, new QSize(320, 240), new QSize(960,720));
// bool QOpenCamWidget::grabCapture(int source) tries to get a
// video capture handle from OpenCV, using the source number
// as the device to open. Here I use -1 as the number, meaning