1 /****************************************************************************
3 ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 ** This file is part of the documentation of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:FDL$
10 ** GNU Free Documentation License
11 ** Alternatively, this file may be used under the terms of the GNU Free
12 ** Documentation License version 1.3 as published by the Free Software
13 ** Foundation and appearing in the file included in the packaging of
17 ** Alternatively, this file may be used in accordance with the terms
18 ** and conditions contained in a signed written agreement between you
26 ****************************************************************************/
29 \title What's New in Qt Quick 1
30 \page qtquick1-whatsnew.html
31 \inqmlmodule QtQuick 1
33 \section1 Qt 4.7.4 includes QtQuick 1.1
35 QtQuick 1.1 is a minor feature update. \e {import QtQuick 1.1} to use the new
40 PinchArea provides support for the common two finger pinch gesture.
42 \section2 LayoutMirroring attached property
44 \l {LayoutMirroring}{Layout mirroring} is useful when you need to support both
45 left-to-right and right-to-left layout versions of your application that target
46 different language areas.
50 Added the following property:
52 \o \l {Item::}{anchors.mirrored}
57 Added the following properties:
59 \o \l {Text::}{lineHeight}
60 \o \l {Text::}{lineHeightMode}
61 \o \l {Text::}{lineCount}
62 \o \l {Text::}{maximumLineCount}
63 \o \l {Text::}{truncated}
64 \o \l {Text::}{effectiveHorizontalAlignment}
67 horizontalAlignment now accepts Text.AlignJustify alignment mode.
71 Added the following properties, methods and signal handlers:
73 \o \l {TextEdit::}{canPaste}
74 \o \l {TextEdit::}{lineCount}
75 \o \l {TextEdit::}{inputMethodComposing}
76 \o \l {TextEdit::}{mouseSelectionMode}
77 \o \l {TextEdit::}{effectiveHorizontalAlignment}
78 \o \l {TextEdit::}{deselect()}
79 \o \l {TextEdit::}{isRightToLeft()}
80 \o \l {TextEdit::}{moveCursorSelection()} to enable selection by word
81 \o \l {TextEdit::}{onLinkActivated}
86 Added the following properties and methods:
88 \o \l {TextInput::}{canPaste}
89 \o \l {TextInput::}{inputMethodComposing}
90 \o \l {TextInput::}{mouseSelectionMode}
91 \o \l {TextInput::}{effectiveHorizontalAlignment}
92 \o \l {TextInput::}{deselect()}
93 \o \l {TextInput::}{isRightToLeft()}
94 \o \l {TextInput::}{moveCursorSelection()} to enable selection by word
97 \section2 Image, BorderImage and AnimatedImage
99 Added the following properties:
101 \o \l{Image::}{cache}
102 \o \l{Image::}{mirror}
107 Added the following properties:
109 \o \l{Item::}{implicitWidth} and \l{Item::}{implicitHeight}
114 Added the following methods:
116 \o \l{Flickable::}{resizeContent()}
117 \o \l{Flickable::}{returnToBounds()}
122 Added the following property:
124 \o \l{MouseArea::}{preventStealing}
127 \section2 ListView and GridView
129 Added the following properties and methods:
131 \o \l{ListView::}{layoutDirection}
132 \o \l{ListView::}{effectiveLayoutDirection}
133 \o \l{ListView::}{positionViewAtBeginning()}
134 \o \l{ListView::}{positionViewAtEnd()}
137 \section2 Flow, Grid and Row
139 Added the following properties:
141 \o \l{Flow::}{layoutDirection}
142 \o \l{Flow::}{effectiveLayoutDirection}
147 Added the following methods and signal handlers:
149 \o \l{Repeater::}{onItemAdded}
150 \o \l{Repeater::}{onItemRemoved}
151 \o \l{Repeater::}{itemAt()}
157 \o The \l{Component::}{createObject()} method now accepts a map of initial
158 property values for the created object.
164 \o Added the \l {QML:Qt::application}{Qt.application} object to hold generic
165 global application properties.
168 \section2 Other changes
171 \o Functions can be \l{Property Binding#Property Binding}{assigned to properties from JavaScript}
172 to create property bindings.
173 \o QtQuick now supports Right to Left layout in positioners, views, anchors and text elements.
179 \section2 QtQuick namespace
181 In prior Qt releases, all the Qt Quick elements were available in the \e Qt
182 namespace. Starting with Qt 4.7.1, the elements are also available in the
183 \e QtQuick namespace, which improves naming consistency, and allows the
184 development of Qt Quick to occur at a faster rate than Qt's usual minor release
187 The change for developers is very simple - where you previously wrote
188 \e {import Qt 4.7}, just replace it with \e {import QtQuick 1.0}, like this:
194 text: "Welcome to QtQuick 1.0!"
198 \e {import Qt 4.7} continues to work so existing applications won't break even
199 if they aren't updated, but it is recommended that all import statements be
200 modified to the new form.