File: qdeclarativeexamples.html

package info (click to toggle)
qt4-x11 4%3A4.8.2%2Bdfsg-11
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 701,696 kB
  • sloc: cpp: 2,686,179; ansic: 375,485; python: 25,859; sh: 19,349; xml: 17,091; perl: 14,765; yacc: 5,383; asm: 5,038; makefile: 1,259; lex: 555; ruby: 526; objc: 347; cs: 112; pascal: 112; php: 54; sed: 34
file content (219 lines) | stat: -rw-r--r-- 11,823 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- examples.qdoc -->
  <title>Qt 4.8: QML Examples and Demos</title>
  <link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="content"> 
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
  </div>
  <div class="breadcrumb toolblock">
    <ul>
      <li class="first"><a href="index.html">Home</a></li>
      <!--  Breadcrumbs go here -->
<li><a href="all-examples.html">Examples</a></li>
<li>QML Examples &amp; Demos</li>
    </ul>
  </div>
</div>
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#demos">Demos</a></li>
<li class="level1"><a href="#examples">Examples</a></li>
<li class="level2"><a href="#animation">Animation</a></li>
<li class="level2"><a href="#image-elements">Image Elements</a></li>
<li class="level2"><a href="#text">Text</a></li>
<li class="level2"><a href="#positioners">Positioners</a></li>
<li class="level2"><a href="#key-interaction">Key Interaction</a></li>
<li class="level2"><a href="#touch-interaction">Touch Interaction</a></li>
<li class="level2"><a href="#ui-components">UI Components</a></li>
<li class="level2"><a href="#toys">Toys</a></li>
<li class="level2"><a href="#models-and-views">Models and Views</a></li>
<li class="level2"><a href="#xml">XML</a></li>
<li class="level2"><a href="#internationalization-i18n">Internationalization (i18n)</a></li>
<li class="level2"><a href="#right-to-left-user-interfaces">Right-to-left User Interfaces</a></li>
<li class="level2"><a href="#threading">Threading</a></li>
<li class="level2"><a href="#screen-orientation">Screen Orientation</a></li>
<li class="level2"><a href="#sql-local-storage">SQL Local Storage</a></li>
<li class="level2"><a href="#c-extensions">C++ Extensions</a></li>
<li class="level1"><a href="#labs">Labs</a></li>
</ul>
</div>
<h1 class="title">QML Examples and Demos</h1>
<span class="subtitle"></span>
<!-- $$$qdeclarativeexamples.html-description -->
<div class="descr"> <a name="details"></a>
<p>Qt includes a set of examples and demos that show how to use various aspects of QML. The examples are small demonstrations of particular QML components, while the demos contain more complete and functional applications.</p>
<p>To run the examples and demos, open them in Qt Creator or use the included <a href="qmlviewer.html">QML Viewer</a> tool. The <a href="qmlviewer.html">QML Viewer</a> can be run from the command line:</p>
<pre class="cpp"> qmlviewer $QTDIR<span class="operator">/</span>demos<span class="operator">/</span>declarative<span class="operator">/</span>samegame<span class="operator">/</span>samegame<span class="operator">.</span>qml</pre>
<p>On Mac OS X, you can run the included &quot;QMLViewer&quot; application from the Finder, or use the command line:</p>
<pre class="cpp"> <span class="type">QMLViewer</span><span class="operator">.</span>app<span class="operator">/</span>Contents<span class="operator">/</span>MacOS<span class="operator">/</span><span class="type">QMLViewer</span> $QTDIR<span class="operator">/</span>demos<span class="operator">/</span>declarative<span class="operator">/</span>samegame<span class="operator">/</span>samegame<span class="operator">.</span>qml</pre>
<a name="demos"></a>
<h2>Demos</h2>
<p>The QML demos integrate a variety of features to demonstrate how QML can be used to produce sophisticated interfaces and applications:</p>
<table class="generic">
<tr valign="top" class="odd"><td ><a href="demos-declarative-calculator.html">Calculator</a><p class="centerAlign"><img src="images/qml-calculator-example-small.png" alt="" /></p></td><td ><a href="demos-declarative-flickr.html">Flickr Mobile</a><p class="centerAlign"><img src="images/qml-flickr-demo-small.png" alt="" /></p></td><td ><a href="demos-declarative-minehunt.html">Minehunt</a><p class="centerAlign"><img src="images/qml-minehunt-demo-small.png" alt="" /></p></td></tr>
<tr valign="top" class="even"><td ><a href="demos-declarative-photoviewer.html">Photo Viewer</a><p class="centerAlign"><img src="images/qml-photoviewer-demo-small.png" alt="" /></p></td><td ><a href="demos-declarative-rssnews.html">RSS News Reader</a><p class="centerAlign"><img src="images/qml-rssnews-demo-small.png" alt="" /></p></td><td ><a href="demos-declarative-samegame.html">Same Game</a><p class="centerAlign"><img src="images/qml-samegame-demo-small.png" alt="" /></p></td></tr>
<tr valign="top" class="odd"><td ><a href="demos-declarative-snake.html">Snake</a><p class="centerAlign"><img src="images/qml-snake-demo-small.png" alt="" /></p></td><td ><a href="demos-declarative-twitter.html">Twitter</a><p class="centerAlign"><img src="images/qml-twitter-demo-small.png" alt="" /></p></td><td ><a href="demos-declarative-webbrowser.html">Web Browser</a><p class="centerAlign"><img src="images/qml-webbrowser-demo-small.png" alt="" /></p></td></tr>
</table>
<p>The demos can be found in Qt's <tt>demos/declarative</tt> directory.</p>
<a name="examples"></a>
<h2>Examples</h2>
<p>The QML examples are small, simple applications that show how to use a particular QML component or feature. If you are new to QML, you may also find the <a href="qml-tutorial.html">Hello World</a> and <a href="qml-advtutorial.html">Same Game</a> tutorials useful.</p>
<p>The examples can be found in Qt's <tt>examples/declarative</tt> directory.</p>
<a name="animation"></a>
<h3>Animation</h3>
<ul>
<li><a href="declarative-animation-basics-color-animation.html">Color Animation</a></li>
<li><a href="declarative-animation-behaviors-behavior-example.html">Behaviors</a></li>
<li><a href="declarative-animation-easing.html">Easing</a></li>
<li><a href="declarative-animation-basics-property-animation.html">Property Animation</a></li>
<li><a href="declarative-animation-states.html">States</a></li>
<li><a href="declarative-animation-behaviors-wigglytext.html">Wiggly Text</a></li>
</ul>
<a name="image-elements"></a>
<h3>Image Elements</h3>
<ul>
<li><a href="declarative-imageelements-borderimage.html">BorderImage</a></li>
<li><a href="declarative-imageelements-image.html">Image</a></li>
</ul>
<a name="text"></a>
<h3>Text</h3>
<ul>
<li><a href="declarative-text-fonts.html">Fonts</a></li>
<li><a href="declarative-text-textselection.html">Text Selection</a></li>
</ul>
<a name="positioners"></a>
<h3>Positioners</h3>
<ul>
<li><a href="declarative-positioners.html">Example</a></li>
</ul>
<a name="key-interaction"></a>
<h3>Key Interaction</h3>
<ul>
<li><a href="declarative-keyinteraction-focus.html">Focus</a></li>
</ul>
<a name="touch-interaction"></a>
<h3>Touch Interaction</h3>
<ul>
<li><a href="declarative-touchinteraction-mousearea.html">MouseArea</a></li>
</ul>
<a name="ui-components"></a>
<h3>UI Components</h3>
<ul>
<li><a href="declarative-ui-components-dialcontrol.html">Dial control</a></li>
<li><a href="declarative-ui-components-flipable.html">Flipable</a></li>
<li><a href="declarative-ui-components-progressbar.html">Progress bar</a></li>
<li><a href="declarative-ui-components-scrollbar.html">Scroll bar</a></li>
<li><a href="declarative-ui-components-searchbox.html">Search box</a></li>
<li><a href="declarative-ui-components-slideswitch.html">Slide switch</a></li>
<li><a href="declarative-ui-components-spinner.html">Spinner</a></li>
<li><a href="declarative-ui-components-tabwidget.html">Tab widget</a></li>
</ul>
<a name="toys"></a>
<h3>Toys</h3>
<ul>
<li><a href="declarative-toys-clocks.html">Clocks</a></li>
<li><a href="declarative-toys-corkboards.html">Corkboards</a></li>
<li><a href="declarative-toys-dynamicscene.html">Dynamic Scene</a></li>
<li><a href="declarative-toys-tic-tac-toe.html">Tic Tac Toe</a></li>
<li><a href="declarative-toys-tvtennis.html">TV Tennis</a></li>
</ul>
<a name="models-and-views"></a>
<h3>Models and Views</h3>
<ul>
<li><a href="declarative-modelviews-gridview.html">GridView</a></li>
<li><a href="qml-listview-examples.html">ListView</a></li>
<li><a href="declarative-modelviews-pathview.html">PathView</a></li>
<li><a href="declarative-modelviews-package.html">Package</a></li>
<li><a href="declarative-modelviews-parallax.html">Parallax</a></li>
<li><a href="declarative-modelviews-visualitemmodel.html">VisualItemModel</a></li>
<li><a href="declarative-modelviews-stringlistmodel.html">String ListModel</a></li>
<li><a href="declarative-modelviews-objectlistmodel.html">Object ListModel</a></li>
<li><a href="declarative-modelviews-abstractitemmodel.html">AbstractItemModel</a></li>
<li><a href="qml-webview-examples.html">WebView</a></li>
</ul>
<a name="xml"></a>
<h3>XML</h3>
<ul>
<li><a href="declarative-xml-xmlhttprequest.html">XmlHttpRequest</a></li>
</ul>
<a name="internationalization-i18n"></a>
<h3>Internationalization (i18n)</h3>
<ul>
<li><a href="declarative-i18n.html">Example</a></li>
</ul>
<a name="right-to-left-user-interfaces"></a>
<h3>Right-to-left User Interfaces</h3>
<ul>
<li><a href="declarative-righttoleft-layoutmirroring.html">Layout mirroring</a></li>
<li><a href="declarative-righttoleft-layoutdirection.html">Layout direction</a></li>
<li><a href="declarative-righttoleft-textalignment.html">Text alignment</a></li>
</ul>
<a name="threading"></a>
<h3>Threading</h3>
<ul>
<li><a href="declarative-threading-threadedlistmodel.html">Threaded ListModel</a></li>
<li><a href="declarative-threading-workerscript.html">WorkerScript</a></li>
</ul>
<a name="screen-orientation"></a>
<h3>Screen Orientation</h3>
<ul>
<li><a href="declarative-screenorientation.html">Example</a></li>
</ul>
<a name="sql-local-storage"></a>
<h3>SQL Local Storage</h3>
<ul>
<li><a href="declarative-sqllocalstorage.html">Example</a></li>
</ul>
<a name="c-extensions"></a>
<h3>C++ Extensions</h3>
<ul>
<li><a href="declarative-cppextensions-reference.html">Reference examples</a></li>
<li><a href="declarative-cppextensions-plugins.html">Plugins</a></li>
<li><a href="declarative-cppextensions-qgraphicslayouts.html">QGraphicsLayouts</a></li>
<li><a href="declarative-cppextensions-qwidgets.html">QWidgets</a></li>
<li><a href="declarative-cppextensions-imageprovider.html">Image provider</a></li>
<li><a href="declarative-cppextensions-networkaccessmanagerfactory.html">Network access manager factory</a></li>
</ul>
<a name="labs"></a>
<h2>Labs</h2>
<ul>
<li><a href="src-imports-folderlistmodel.html">Folder List Model</a> - a C++ model plugin</li>
<li><a href="declarative-shadereffects.html">Shader Effects</a></li>
</ul>
</div>
<!-- @@@qdeclarativeexamples.html -->
  <div class="ft">
    <span></span>
  </div>
</div> 
<div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2012 Nokia Corporation and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>