]> git.defcon.no Git - qopencamwidget/blobdiff - view.cpp
Sizes are now code-settable using c'tor parameters. Default values allow for code...
[qopencamwidget] / view.cpp
index bd0808a06a42553a5130e9dc04f3dd85075b130f..0c81c3c45813869973df3e71bd2a2f79c00da528 100644 (file)
--- a/view.cpp
+++ b/view.cpp
@@ -41,7 +41,7 @@ View::View( QWidget *parent)
        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