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 features.
38 PinchArea provides support for the common two finger pinch gesture.
40 \section2 LayoutMirroring attached property
42 \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.
46 Added the following property:
48 \o \l {Item::}{anchors.mirrored}
53 Added the following properties:
55 \o \l {Text::}{lineHeight}
56 \o \l {Text::}{lineHeightMode}
57 \o \l {Text::}{lineCount}
58 \o \l {Text::}{maximumLineCount}
59 \o \l {Text::}{truncated}
60 \o \l {Text::}{effectiveHorizontalAlignment}
63 horizontalAlignment now accepts Text.AlignJustify alignment mode.
67 Added the following properties, methods and signal handlers:
69 \o \l {TextEdit::}{canPaste}
70 \o \l {TextEdit::}{lineCount}
71 \o \l {TextEdit::}{inputMethodComposing}
72 \o \l {TextEdit::}{mouseSelectionMode}
73 \o \l {TextEdit::}{effectiveHorizontalAlignment}
74 \o \l {TextEdit::}{deselect()}
75 \o \l {TextEdit::}{isRightToLeft()}
76 \o \l {TextEdit::}{moveCursorSelection()} to enable selection by word
77 \o \l {TextEdit::}{onLinkActivated}
82 Added the following properties and methods:
84 \o \l {TextInput::}{canPaste}
85 \o \l {TextInput::}{inputMethodComposing}
86 \o \l {TextInput::}{mouseSelectionMode}
87 \o \l {TextInput::}{effectiveHorizontalAlignment}
88 \o \l {TextInput::}{deselect()}
89 \o \l {TextInput::}{isRightToLeft()}
90 \o \l {TextInput::}{moveCursorSelection()} to enable selection by word
93 \section2 Image, BorderImage and AnimatedImage
95 Added the following properties:
98 \o \l{Image::}{mirror}
103 Added the following properties:
105 \o \l{Item::}{implicitWidth} and \l{Item::}{implicitHeight}
110 Added the following methods:
112 \o \l{Flickable::}{resizeContent()}
113 \o \l{Flickable::}{returnToBounds()}
118 Added the following property:
120 \o \l{MouseArea::}{preventStealing}
123 \section2 ListView and GridView
125 Added the following properties and methods:
127 \o \l{ListView::}{layoutDirection}
128 \o \l{ListView::}{effectiveLayoutDirection}
129 \o \l{ListView::}{positionViewAtBeginning()}
130 \o \l{ListView::}{positionViewAtEnd()}
133 \section2 Flow, Grid and Row
135 Added the following properties:
137 \o \l{Flow::}{layoutDirection}
138 \o \l{Flow::}{effectiveLayoutDirection}
143 Added the following methods and signal handlers:
145 \o \l{Repeater::}{onItemAdded}
146 \o \l{Repeater::}{onItemRemoved}
147 \o \l{Repeater::}{itemAt()}
153 \o The \l{Component::}{createObject()} method now accepts a map of initial property values for
160 \o Added the \l {QML:Qt::application}{Qt.application} object to hold generic global application
164 \section2 Other changes
167 \o Functions can be \l{Binding Properties from JavaScript}{assigned to properties from JavaScript}
168 to create property bindings.
169 \o QtQuick now supports Right to Left layout in positioners, views, anchors and text elements.
175 \section2 QtQuick namespace
177 In prior Qt releases, all the Qt Quick elements were available in the \e Qt namespace.
178 Starting with Qt 4.7.1, the elements are also available in the \e QtQuick namespace,
179 which improves naming consistency, and allows the development of Qt Quick to occur at
180 a faster rate than Qt's usual minor release schedule.
182 The change for developers is very simple - where you previously wrote \e {import Qt 4.7},
183 just replace it with \e {import QtQuick 1.0}, like this:
189 text: "Welcome to QtQuick 1.0!"
193 \e {import Qt 4.7} continues to work so existing applications wont break even if they
194 aren't updated, but it is recommended that all import statements be modified to the new