1 /****************************************************************************
3 ** Copyright (C) 2011 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 ** No Commercial Usage
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
16 ** GNU Free Documentation License
17 ** Alternatively, this file may be used under the terms of the GNU Free
18 ** Documentation License version 1.3 as published by the Free Software
19 ** Foundation and appearing in the file included in the packaging of this
22 ** If you have questions regarding the use of this file, please contact
23 ** Nokia at qt-info@nokia.com.
26 ****************************************************************************/
29 \title What's New in Qt Quick
30 \page qtquick-whatsnew.html
32 \section1 Qt 4.7.4 includes QtQuick 1.1
34 QtQuick 1.1 is a minor feature update. \e {import QtQuick 1.1} to use the new
39 PinchArea provides support for the common two finger pinch gesture.
41 \section2 LayoutMirroring attached property
43 \l {LayoutMirroring}{Layout mirroring} is useful when you need to support both
44 left-to-right and right-to-left layout versions of your application that target
45 different language areas.
49 Added the following property:
51 \o \l {Item::}{anchors.mirrored}
56 Added the following properties:
58 \o \l {Text::}{lineHeight}
59 \o \l {Text::}{lineHeightMode}
60 \o \l {Text::}{lineCount}
61 \o \l {Text::}{maximumLineCount}
62 \o \l {Text::}{truncated}
63 \o \l {Text::}{effectiveHorizontalAlignment}
66 horizontalAlignment now accepts Text.AlignJustify alignment mode.
70 Added the following properties, methods and signal handlers:
72 \o \l {TextEdit::}{canPaste}
73 \o \l {TextEdit::}{lineCount}
74 \o \l {TextEdit::}{inputMethodComposing}
75 \o \l {TextEdit::}{mouseSelectionMode}
76 \o \l {TextEdit::}{effectiveHorizontalAlignment}
77 \o \l {TextEdit::}{deselect()}
78 \o \l {TextEdit::}{isRightToLeft()}
79 \o \l {TextEdit::}{moveCursorSelection()} to enable selection by word
80 \o \l {TextEdit::}{onLinkActivated}
85 Added the following properties and methods:
87 \o \l {TextInput::}{canPaste}
88 \o \l {TextInput::}{inputMethodComposing}
89 \o \l {TextInput::}{mouseSelectionMode}
90 \o \l {TextInput::}{effectiveHorizontalAlignment}
91 \o \l {TextInput::}{deselect()}
92 \o \l {TextInput::}{isRightToLeft()}
93 \o \l {TextInput::}{moveCursorSelection()} to enable selection by word
96 \section2 Image, BorderImage and AnimatedImage
98 Added the following properties:
100 \o \l{Image::}{cache}
101 \o \l{Image::}{mirror}
106 Added the following properties:
108 \o \l{Item::}{implicitWidth} and \l{Item::}{implicitHeight}
113 Added the following methods:
115 \o \l{Flickable::}{resizeContent()}
116 \o \l{Flickable::}{returnToBounds()}
121 Added the following property:
123 \o \l{MouseArea::}{preventStealing}
126 \section2 ListView and GridView
128 Added the following properties and methods:
130 \o \l{ListView::}{layoutDirection}
131 \o \l{ListView::}{effectiveLayoutDirection}
132 \o \l{ListView::}{positionViewAtBeginning()}
133 \o \l{ListView::}{positionViewAtEnd()}
136 \section2 Flow, Grid and Row
138 Added the following properties:
140 \o \l{Flow::}{layoutDirection}
141 \o \l{Flow::}{effectiveLayoutDirection}
146 Added the following methods and signal handlers:
148 \o \l{Repeater::}{onItemAdded}
149 \o \l{Repeater::}{onItemRemoved}
150 \o \l{Repeater::}{itemAt()}
156 \o The \l{Component::}{createObject()} method now accepts a map of initial
157 property values for the created object.
163 \o Added the \l {QML:Qt::application}{Qt.application} object to hold generic
164 global application properties.
167 \section2 Other changes
170 \o Functions can be \l{Property Binding#Property Binding}{assigned to properties from JavaScript}
171 to create property bindings.
172 \o QtQuick now supports Right to Left layout in positioners, views, anchors and text elements.
178 \section2 QtQuick namespace
180 In prior Qt releases, all the Qt Quick elements were available in the \e Qt
181 namespace. Starting with Qt 4.7.1, the elements are also available in the
182 \e QtQuick namespace, which improves naming consistency, and allows the
183 development of Qt Quick to occur at a faster rate than Qt's usual minor release
186 The change for developers is very simple - where you previously wrote
187 \e {import Qt 4.7}, just replace it with \e {import QtQuick 1.0}, like this:
193 text: "Welcome to QtQuick 1.0!"
197 \e {import Qt 4.7} continues to work so existing applications won't break even
198 if they aren't updated, but it is recommended that all import statements be
199 modified to the new form.