1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8">
3 <title>QOpenCamWidget: main.cpp Source File
</title>
4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
5 <link href=
"tabs.css" rel=
"stylesheet" type=
"text/css">
7 <!-- Generated by Doxygen 1.5.6 -->
8 <div class=
"navigation" id=
"top">
11 <li><a href=
"main.html"><span>Main
Page
</span></a></li>
12 <li><a href=
"annotated.html"><span>Classes
</span></a></li>
13 <li class=
"current"><a href=
"files.html"><span>Files
</span></a></li>
16 <h1>main.cpp
</h1><a href=
"main_8cpp.html">Go to the documentation of this file.
</a><div class=
"fragment"><pre class=
"fragment"><a name=
"l00001"></a>00001 <span class=
"comment">/*
</span>
17 <a name=
"l00002"></a>00002 <span class=
"comment"> QOpenCamWidget demo application main code stup (main.c)
</span>
18 <a name=
"l00003"></a>00003 <span class=
"comment"> This file is part of a demonstration application, illustrating
</span>
19 <a name=
"l00004"></a>00004 <span class=
"comment"> how to use the QOpenCamWidget, a Qt
4 widget that displays
</span>
20 <a name=
"l00005"></a>00005 <span class=
"comment"> video input from a webcam, along with a snapshot button.
</span>
21 <a name=
"l00006"></a>00006 <span class=
"comment"></span>
22 <a name=
"l00007"></a>00007 <span class=
"comment"> Copyright (C)
2009 Jon Langseth
</span>
23 <a name=
"l00008"></a>00008 <span class=
"comment"></span>
24 <a name=
"l00009"></a>00009 <span class=
"comment"> This program is free software; you can redistribute it and/or
</span>
25 <a name=
"l00010"></a>00010 <span class=
"comment"> modify it under the terms of the GNU General Public License
</span>
26 <a name=
"l00011"></a>00011 <span class=
"comment"> as published by the Free Software Foundation in its version
2</span>
27 <a name=
"l00012"></a>00012 <span class=
"comment"> of the License.
</span>
28 <a name=
"l00013"></a>00013 <span class=
"comment"></span>
29 <a name=
"l00014"></a>00014 <span class=
"comment"> This program is distributed in the hope that it will be useful,
</span>
30 <a name=
"l00015"></a>00015 <span class=
"comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of
</span>
31 <a name=
"l00016"></a>00016 <span class=
"comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
</span>
32 <a name=
"l00017"></a>00017 <span class=
"comment"> GNU General Public License for more details.
</span>
33 <a name=
"l00018"></a>00018 <span class=
"comment"></span>
34 <a name=
"l00019"></a>00019 <span class=
"comment"> You should have received a copy of the GNU General Public License
</span>
35 <a name=
"l00020"></a>00020 <span class=
"comment"> along with this program; if not, write to the Free Software
</span>
36 <a name=
"l00021"></a>00021 <span class=
"comment"> Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA
02110-
1301, USA.
</span>
37 <a name=
"l00022"></a>00022 <span class=
"comment"> */
</span>
38 <a name=
"l00023"></a>00023
39 <a name=
"l00024"></a>00024 <span class=
"preprocessor">#include
<QtGui/QApplication
></span>
40 <a name=
"l00025"></a>00025 <span class=
"preprocessor">#include
"<a class="code
" href="view_8h.html
">view.h</a>"</span>
41 <a name=
"l00026"></a>00026
42 <a name=
"l00027"></a>00027 <span class=
"comment">// The contents of this file is simply a Qt Main app stub.
</span>
43 <a name=
"l00028"></a><a class=
"code" href=
"main_8cpp.html#0ddf1224851353fc92bfbff6f499fa97">00028</a> <span class=
"keywordtype">int
</span> <a class=
"code" href=
"main_8cpp.html#0ddf1224851353fc92bfbff6f499fa97">main
</a> (
<span class=
"keywordtype">int
</span> argc,
<span class=
"keywordtype">char
</span>*argv[])
44 <a name=
"l00029"></a>00029 {
45 <a name=
"l00030"></a>00030 QApplication app(argc, argv);
46 <a name=
"l00031"></a>00031 app.setApplicationName(
<span class=
"stringliteral">"QOpenCamWidget testapp"</span>);
47 <a name=
"l00032"></a>00032 <a class=
"code" href=
"classView.html">View
</a> v;
48 <a name=
"l00033"></a>00033 v.show();
49 <a name=
"l00034"></a>00034 <span class=
"keywordflow">return
</span> app.exec();
50 <a name=
"l00035"></a>00035 }
51 <a name=
"l00036"></a>00036
53 <hr size=
"1"><address style=
"text-align: right;"><small>Generated on Thu Jun
11 01:
49:
57 2009 for QOpenCamWidget by
54 <a href=
"http://www.doxygen.org/index.html">
55 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
"0"></a> 1.5.6 </small></address>