~saviq/ubuntu/saucy/qtdeclarative-opensource-src/add-qtquick-delegate-range

« back to all changes in this revision

Viewing changes to src/quick/doc/src/concepts/modelviewsdata/topic.qdoc

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/****************************************************************************
 
2
**
 
3
** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies).
 
4
** Contact: http://www.qt-project.org/legal
 
5
**
 
6
** This file is part of the documentation of the Qt Toolkit.
 
7
**
 
8
** $QT_BEGIN_LICENSE:FDL$
 
9
** Commercial License Usage
 
10
** Licensees holding valid commercial Qt licenses may use this file in
 
11
** accordance with the commercial license agreement provided with the
 
12
** Software or, alternatively, in accordance with the terms contained in
 
13
** a written agreement between you and Digia.  For licensing terms and
 
14
** conditions see http://qt.digia.com/licensing.  For further information
 
15
** use the contact form at http://qt.digia.com/contact-us.
 
16
**
 
17
** GNU Free Documentation License Usage
 
18
** Alternatively, this file may be used under the terms of the GNU Free
 
19
** Documentation License version 1.3 as published by the Free Software
 
20
** Foundation and appearing in the file included in the packaging of
 
21
** this file.  Please review the following information to ensure
 
22
** the GNU Free Documentation License version 1.3 requirements
 
23
** will be met: http://www.gnu.org/copyleft/fdl.html.
 
24
** $QT_END_LICENSE$
 
25
**
 
26
****************************************************************************/
 
27
 
 
28
/*!
 
29
\page qtquick-modelviewsdata-topic.html
 
30
\title Important Concepts In Qt Quick - Data - Models, Views and Data Storage
 
31
\brief Overview of the data, model and view concepts
 
32
 
 
33
Most applications will have data that needs to be displayed to the user.  That
 
34
data might come from a variety of sources: network sources, local files, and
 
35
databases are all common sources of data.
 
36
 
 
37
\section1 Models and Views
 
38
 
 
39
It is often advantageous to show similar data in a similar manner, within an
 
40
application, and this gives rise to the idea of having a model which contains
 
41
data, and a view which displays the data.  The view will display a delegate
 
42
for every datum in the model.
 
43
 
 
44
For information about how the Model/View paradigm is implemented in Qt Quick,
 
45
see the page titled \l{qtquick-modelviewsdata-modelview.html}
 
46
{Models and Views in Qt Quick}.
 
47
 
 
48
\section1 Data Storage and Access
 
49
 
 
50
Databases are commonly used to store information in applications.  Qt Quick
 
51
provides simplified access to relational databases via the
 
52
\l{QtQuick.LocalStorage 2}{Qt Quick local storage module}.
 
53
 
 
54
*/
 
55