]>
git.defcon.no Git - qopencamwidget/blob - main.cpp
2 QOpenCamWidget demo application main code stup (main.c)
3 This file is part of a demonstration application, illustrating
4 how to use the QOpenCamWidget, a Qt 4 widget that displays
5 video input from a webcam, along with a snapshot button.
7 Copyright (C) 2009 Jon Langseth
9 This program is free software; you can redistribute it and/or
10 modify it under the terms of the GNU General Public License
11 as published by the Free Software Foundation in its version 2
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24 #include <QtGui/QApplication>
27 // The contents of this file is simply a Qt Main app stub.
28 int main (int argc
, char*argv
[])
30 QApplication
app(argc
, argv
);
31 app
.setApplicationName("QOpenCamWidget testapp");