summaryrefslogtreecommitdiffstats
path: root/src/doc/src/declarative/whatsnew.qdoc
blob: 99cf900b584de8e2741ce29c7777d5e14ed66033 (plain)
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
/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the documentation of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.  For licensing terms and
** conditions see http://qt.digia.com/licensing.  For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file.  Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: http://www.gnu.org/copyleft/fdl.html.
** $QT_END_LICENSE$
**
****************************************************************************/

/*!
\title What's New in Qt Quick
\page qtquick-whatsnew.html

\section1 Qt 4.7.4 includes QtQuick 1.1

QtQuick 1.1 is a minor feature update.  \e {import QtQuick 1.1} to use the new
features.

\section2 PinchArea

PinchArea provides support for the common two finger pinch gesture.

\section2 LayoutMirroring attached property

\l {LayoutMirroring}{Layout mirroring} is useful when you need to support both
left-to-right and right-to-left layout versions of your application that target
different language areas.

\section2 Text

Added the following properties:
\list
\li \l {Text::}{lineHeight}
\li \l {Text::}{lineHeightMode}
\li \l {Text::}{lineCount}
\li \l {Text::}{maximumLineCount}
\li \l {Text::}{truncated}
\endlist

horizontalAlignment now accepts Text.AlignJustify alignment mode.

\section2 TextEdit

Added the following properties, methods and signal handlers:
\list
\li \l {TextEdit::}{canPaste}
\li \l {TextEdit::}{lineCount}
\li \l {TextEdit::}{inputMethodComposing}
\li \l {TextEdit::}{mouseSelectionMode}
\li \l {TextEdit::}{deselect()}
\li \l {TextEdit::}{isRightToLeft()}
\li \l {TextEdit::}{moveCursorSelection()} to enable selection by word
\li \l {TextEdit::}{onLinkActivated}
\endlist

\section2 TextInput

Added the following properties and methods:
\list
\li \l {TextInput::}{canPaste}
\li \l {TextInput::}{inputMethodComposing}
\li \l {TextInput::}{mouseSelectionMode}
\li \l {TextInput::}{deselect()}
\li \l {TextInput::}{isRightToLeft()}
\li \l {TextInput::}{moveCursorSelection()} to enable selection by word
\endlist

\section2 Image, BorderImage and AnimatedImage

Added the following properties:
\list
\li \l{Image::}{cache}
\li \l{Image::}{mirror}
\endlist

\section2 Item

Added the following properties:
\list
\li \l{Item::}{implicitWidth} and \l{Item::}{implicitHeight}
\endlist

\section2 Flickable

Added the following methods:
\list
\li \l{Flickable::}{resizeContent()}
\li \l{Flickable::}{returnToBounds()}
\endlist

\section2 MouseArea

Added the following property:
\list
\li \l{MouseArea::}{preventStealing}
\endlist

\section2 ListView and GridView

Added the following properties and methods:
\list
\li \l{ListView::}{layoutDirection}
\li \l{ListView::}{positionViewAtBeginning()}
\li \l{ListView::}{positionViewAtEnd()}
\endlist

\section2 Flow, Grid and Row

Added the following property:
\list
\li \l{Flow::}{layoutDirection}
\endlist

\section2 Repeater

Added the following methods and signal handlers:
\list
\li \l{Repeater::}{onItemAdded}
\li \l{Repeater::}{onItemRemoved}
\li \l{Repeater::}{itemAt()}
\endlist

\section2 Component

\list
\li The \l{Component::}{createObject()} method now accepts a map of initial
property values for the created object.
\endlist

\section2 Qt

\list
\li Added the \l {QML:Qt::application}{Qt.application} object to hold generic
global application properties.
\endlist

\section2 Other changes

\list
\li Functions can be \l{Property Binding#Property Binding}{assigned to properties from JavaScript}
to create property bindings.
\li QtQuick now supports Right to Left layout in positioners, views, anchors and text elements.
\endlist


\section1 Qt 4.7.1

\section2 QtQuick namespace

In prior Qt releases, all the Qt Quick elements were available in the \e Qt
namespace. Starting with Qt 4.7.1, the elements are also available in the
\e QtQuick namespace, which improves naming consistency, and allows the
development of Qt Quick to occur at a faster rate than Qt's usual minor release
schedule.

The change for developers is very simple - where you previously wrote
\e {import Qt 4.7}, just replace it with \e {import QtQuick 1.0}, like this:

\code
import QtQuick 1.0 

Text {
    text: "Welcome to QtQuick 1.0!"
}
\endcode

\e {import Qt 4.7} continues to work so existing applications won't break even
if they aren't updated, but it is recommended that all import statements be
modified to the new form.
*/