/usr/share/qt5/doc/qtquick/qtquick-releasenotes.html is in qtdeclarative5-doc-html 5.2.1-3ubuntu15.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 | <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- whatsnew.qdoc -->
<title>Qt Quick Release Notes | QtQuick 5.2</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="main">
<div class="main-rounded">
<div class="navigationbar">
<ul>
<li>Qt 5.2</li>
<li><a href="qtquick-index.html">Qt Quick</a></li>
<li>Qt Quick Release Notes</li>
<li id="buildversion">
Qt 5.2.1 Reference Documentation</li>
</ul>
</div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#qt-quick-in-qt-5-1">Qt Quick in Qt 5.1</a></li>
<li class="level2"><a href="#new-submodules">New Submodules</a></li>
<li class="level1"><a href="#qt-quick-in-qt-5-0">Qt Quick in Qt 5.0</a></li>
<li class="level1"><a href="#qt-5-0-qtquick-qml-module">Qt 5.0 - QtQuick QML Module</a></li>
<li class="level2"><a href="#visual-types-graphical-effects-and-sprites">Visual types, Graphical Effects and Sprites</a></li>
<li class="level2"><a href="#animations-and-transitions">Animations and Transitions</a></li>
<li class="level2"><a href="#paths">Paths</a></li>
<li class="level2"><a href="#text">Text</a></li>
<li class="level2"><a href="#user-input">User Input</a></li>
<li class="level2"><a href="#specialised-containers">Specialised Containers</a></li>
<li class="level2"><a href="#positioners-row-column-grid-flow-types">Positioners (Row, Column, Grid, Flow types):</a></li>
<li class="level2"><a href="#models-and-views">Models and Views</a></li>
<li class="level2"><a href="#utility-types">Utility types</a></li>
<li class="level2"><a href="#property-types">Property types</a></li>
<li class="level1"><a href="#qt-5-0-additional-qml-modules">Qt 5.0 - Additional QML Modules</a></li>
<li class="level2"><a href="#qtquick-particles">QtQuick.Particles</a></li>
<li class="level2"><a href="#qtquick-window">QtQuick.Window</a></li>
<li class="level2"><a href="#qtquick-xmllistmodel">QtQuick.XmlListModel</a></li>
<li class="level2"><a href="#qtquick-localstorage">QtQuick.LocalStorage</a></li>
</ul>
</div>
<h1 class="title">Qt Quick Release Notes</h1>
<span class="subtitle"></span>
<!-- $$$qtquick-releasenotes.html-description -->
<div class="descr"> <a name="details"></a>
<a name="qt-quick-in-qt-5-1"></a>
<h2>Qt Quick in Qt 5.1</h2>
<p><a href="qtquick-index.html">Qt Quick</a> 2.1 is new in Qt 5.1. This is a summary of improvements and new features introduced by the new import and new classes in Qt 5.1:</p>
<ul>
<li>New threaded render loop for Mac, Linux, and Embedded.</li>
<li>New render loop for windows for smoother animations.</li>
<li>New <a href="qml-qtquick-window-window.html">Window</a> properties: activeFocusItem, minimumWidth, minimumHeight, maximumWidth, maximumHeight, visibility, contentOrientation, and opacity.</li>
<li>New <a href="qml-qtquick-window-screen.html">Screen</a> attached properties: name, desktopAvailableWidth, desktopAvailableHeight, logicalPixelDensity</li>
<li>New <a href="qml-qtquick-grid.html">Grid</a> properties: horizontalAlignment, verticalAlignment, and effectiveHorizontalAlignment.</li>
<li>New <a href="qml-qtquick-textedit.html">TextEdit</a> properties: selectByKeyboard and textDocument</li>
<li>A <a href="qml-qtquick-window-window.html">Window</a> declared inside another Window or <a href="qml-qtquick-item.html">Item</a> will automatically be transient for (centered upon) the outer window.</li>
<li>These types are now part of Qt QML:<ul>
<li><a href="qtquick-modelviewsdata-modelview.html#visualitemmodel">VisualItemModel</a></li>
<li>VisualDataModel - Encapsulates a model and a delegate</li>
<li>VisualDataGroup</li>
</ul>
<p>These types are kept due to compatibility reasons and are replaced by the Qt QML Models types.</p>
</li>
</ul>
<a name="new-submodules"></a>
<h3>New Submodules</h3>
<p>In Qt 5.1, there are several new modules which extend Qt Quick functionalities.</p>
<ul>
<li>Qt Quick Dialogs - contains types for creating and interacting with system dialogs</li>
<li>Qt Quick Controls - provides a set of reusable UI components</li>
<li>Qt Quick Layouts - contains types that are used to arrange items in the user interface</li>
</ul>
<p>The What's New in Qt 5.1 has more information about the Qt 5.1 release.</p>
<a name="qt-quick-in-qt-5-0"></a>
<h2>Qt Quick in Qt 5.0</h2>
<p>The <a href="qtquick-index.html">Qt Quick</a> module is new in Qt 5. It provides the visual canvas and scenegraph back-end as well as the <tt>QtQuick</tt> QML module for QML application development.</p>
<p>As of Qt 5, the <a href="qtquick-index.html">Qt Quick</a> module is based on an OpenGL scenegraph. Many of the classes in the <a href="qtquick-index.html">Qt Quick</a> module have been ported from the QtDeclarative module from Qt 4.8 to use the scenegraph architecture; these classes have been renamed to use a <tt>QQuick*</tt> prefix. (See the Porting QML Applications to Qt 5 for porting information.)</p>
<p>The following classes provide the basic functionality for interacting with the QML visual canvas from C++:</p>
<ul>
<li><a href="qquickitem.html">QQuickItem</a> - the base visual QML type (replaces <tt>QDeclarativeItem</tt>)</li>
<li><a href="qquickview.html">QQuickView</a> - a convenience window for rendering a QML scene from a QML file (replaces <tt>QDeclarativeView</tt>)</li>
<li><a href="qquickwindow.html">QQuickWindow</a> - a base window for displaying a QML scene</li>
<li><a href="qquickpainteditem.html">QQuickPaintedItem</a> - convenience for using the QPainter API with the scenegraph</li>
<li><a href="qquickimageprovider.html">QQuickImageProvider</a> - fetches custom images for use in QML applications (replaces <tt>QDeclarativeImageProvider</tt>)</li>
<li><a href="qquicktexturefactory.html">QQuickTextureFactory</a> - use with <a href="qquickimageprovider.html#requestTexture">QQuickImageProvider::requestTexture</a>()</li>
</ul>
<p>Custom rendering can be performed on the scenegraph using the following new classes:</p>
<ul>
<li><a href="qsgnode.html">QSGNode</a></li>
<li><a href="qsgmaterial.html">QSGMaterial</a></li>
<li><a href="qsgbasicgeometrynode.html">QSGBasicGeometryNode</a></li>
<li><a href="qsggeometrynode.html">QSGGeometryNode</a></li>
<li><a href="qsgclipnode.html">QSGClipNode</a></li>
<li><a href="qsgtransformnode.html">QSGTransformNode</a></li>
<li><a href="qsgopacitynode.html">QSGOpacityNode</a></li>
<li><a href="qsgflatcolormaterial.html">QSGFlatColorMaterial</a></li>
<li><a href="qsgsimplerectnode.html">QSGSimpleRectNode</a></li>
<li><a href="qsgsimpletexturenode.html">QSGSimpleTextureNode</a></li>
<li><a href="qsgtexture.html">QSGTexture</a></li>
<li><a href="qsgdynamictexture.html">QSGDynamicTexture</a></li>
<li><a href="qsgopaquetexturematerial.html">QSGOpaqueTextureMaterial</a></li>
<li><a href="qsgtexturematerial.html">QSGTextureMaterial</a></li>
<li><a href="qsgtextureprovider.html">QSGTextureProvider</a></li>
<li><a href="qsgvertexcolormaterial.html">QSGVertexColorMaterial</a></li>
</ul>
<a name="qt-5-0-qtquick-qml-module"></a>
<h2>Qt 5.0 - QtQuick QML Module</h2>
<p>The <tt>QtQuick 2.0</tt> QML module is a major update.</p>
<p>Below are the additions in <tt>QtQuick 2.0</tt>. For a list of behavioral changes which may affect applications ported from <tt>QtQuick 1.x</tt>, see the Porting QML Applications to Qt 5.</p>
<a name="visual-types-graphical-effects-and-sprites"></a>
<h3>Visual types, Graphical Effects and Sprites</h3>
<ul>
<li>New <a href="qml-qtquick-canvas.html">Canvas</a> type for drawing. This provides an API similar to that of the HTML5 Canvas API, along with some additional features.<ul>
<li>Supports two render targets: <tt>Canvas.Image</tt> and <tt>Canvas.FramebufferObject</tt>.</li>
<li>Supports background thread rendering.</li>
<li>Supports tiled canvas rendering.</li>
<li>Supports most of the HTML5 context2d APIs.</li>
</ul>
</li>
<li><a href="qml-qtquick-item.html">Item</a>:<ul>
<li>New <a href="qml-qtquick-item.html#layer.enabled-prop">layer.enabled</a> property enables an item to be rendered into an offscreen cache for optimization.</li>
<li>New <a href="qml-qtquick-item.html#contains-method">contains()</a> method returns whether an item contains a specified point.</li>
<li>New <a href="qml-qtquick-item.html#anchors.alignWhenCentered-prop">anchors.alignWhenCentered</a> property can force centered anchors to align on a whole pixel.</li>
<li>New <a href="qml-qtquick-item.html#enabled-prop">enabled</a> property is available, which stops input event delivery and removes active focus.</li>
</ul>
</li>
<li><a href="qml-qtquick-image.html">Image</a>:<ul>
<li>New <a href="qml-qtquick-image.html#horizontalAlignment-prop">horizontalAlignment</a> and <a href="qml-qtquick-image.html#verticalAlignment-prop">verticalAlignment</a> properties to set the image alignment.</li>
<li>New <tt>Image.Pad</tt> enumeration value for <a href="qml-qtquick-image.html#fillMode-prop">fillMode</a> that does not transform the image, unlike other <a href="qml-qtquick-image.html#fillMode-prop">fillMode</a> enumeration values.</li>
</ul>
</li>
<li>New <a href="qml-qtquick-shadereffect.html">ShaderEffect</a> and <a href="qml-qtquick-shadereffectsource.html">ShaderEffectSource</a> types enable GLSL shader programs to be integrated directly into QML code and applied to QML items and images. (This obsoletes the experimental Qt.labs.shaders module.)</li>
<li>New <a href="qml-qtquick-spritesequence.html">SpriteSequence</a> type renders animated sprites and can transition between animations. Each animation in a sequence is represented by the new <a href="qml-qtquick-sprite.html">Sprite</a> type.</li>
<li>New <a href="qml-qtquick-animatedsprite.html">AnimatedSprite</a> type for drawing single sprite animations.</li>
</ul>
<a name="animations-and-transitions"></a>
<h3>Animations and Transitions</h3>
<ul>
<li>New <a href="qml-qtquick-animationcontroller.html">AnimationController</a> type enables an animation to be manually driven by a <a href="qml-qtquick-animationcontroller.html#progress-prop">progress</a> value.</li>
<li>New <a href="qml-qtquick-pathanimation.html">PathAnimation</a> type animates an item along a <a href="qml-qtquick-path.html">Path</a>.</li>
<li>New <a href="qml-qtquick-pathinterpolator.html">PathInterpolator</a> type provides updated attribute values for an item animating along a path. It can be used as an low-level alternative to <a href="qml-qtquick-pathanimation.html">PathAnimation</a>.</li>
<li><a href="qml-qtquick-transition.html">Transition</a>:<ul>
<li>New <a href="qml-qtquick-transition.html#running-prop">running</a> property holds whether a transition is currently running.</li>
<li>New <a href="qml-qtquick-transition.html#enabled-prop">enabled</a> property controls whether a transition is enabled.</li>
</ul>
</li>
</ul>
<a name="paths"></a>
<h3>Paths</h3>
<ul>
<li>New <a href="qml-qtquick-patharc.html">PathArc</a> type creates an arc-type path.</li>
<li>New <a href="qml-qtquick-pathcurve.html">PathCurve</a> type creates a catmull-rom curve path.</li>
<li>New <a href="qml-qtquick-pathsvg.html">PathSvg</a> type creates a path from a SVG string.</li>
<li>Changes common to <a href="qml-qtquick-pathline.html">PathLine</a>, <a href="qml-qtquick-pathquad.html">PathQuad</a> and <a href="qml-qtquick-pathcubic.html">PathCubic</a>:<ul>
<li>New <tt>relativeX</tt> and <tt>relativeY</tt> properties define the start and end points of a path relative to its start.</li>
</ul>
</li>
<li><a href="qml-qtquick-pathcubic.html">PathCubic</a> only:<ul>
<li>New <a href="qml-qtquick-pathcubic.html#relativeControl1X-prop">relativeControl1X</a>, <a href="qml-qtquick-pathcubic.html#relativeControl1Y-prop">relativeControl1Y</a>, <a href="qml-qtquick-pathcubic.html#relativeControl2X-prop">relativeControl2X</a> and <a href="qml-qtquick-pathcubic.html#relativeControl2Y-prop">relativeControl2Y</a> properties define the positions of the control points relative to the start of the curve.</li>
</ul>
</li>
<li><a href="qml-qtquick-pathquad.html">PathQuad</a> only:<ul>
<li>New <a href="qml-qtquick-pathquad.html#relativeControlX-prop">relativeControlX</a> and <a href="qml-qtquick-pathquad.html#relativeControlY-prop">relativeControlY</a> define the positions of the control points relative to the start of the curve.</li>
</ul>
</li>
</ul>
<a name="text"></a>
<h3>Text</h3>
<ul>
<li>Changes common to <a href="qml-qtquick-text.html">Text</a>, <a href="qml-qtquick-textedit.html">TextEdit</a> and <a href="qml-qtquick-textinput.html">TextInput</a>:<ul>
<li>New <tt>contentWidth</tt> and <tt>contentHeight</tt> properties provide the dimensions of the textual content.</li>
<li>New <tt>effectiveHorizontalAlignment</tt> property provides the read-only actual horizontal alignment.</li>
</ul>
</li>
<li>Changes common to both <a href="qml-qtquick-textedit.html">TextEdit</a> and <a href="qml-qtquick-textinput.html">TextInput</a>:<ul>
<li>New <tt>canUndo</tt> and <tt>canRedo</tt> properties specify whether undo and redo operations are available.</li>
<li>New <tt>getText()</tt> method returns the text located between specified start and end indexes. Additionally <a href="qml-qtquick-textedit.html">TextEdit</a> has a <a href="qml-qtquick-textedit.html#getFormattedText-method">getFormattedText()</a> method that returns the formatted text.</li>
</ul>
</li>
<li><a href="qml-qtquick-text.html">Text</a> only:<ul>
<li><tt>Text.RightElide</tt> is now supported where text spans multiple lines.</li>
<li>New <a href="qml-qtquick-text.html#linkColor-prop">linkColor</a> property controls the color of linked text.</li>
<li>New <a href="qml-qtquick-text.html#onLineLaidOut-signal">onLineLaidOut</a> handler is called for every line during the layout process to give the option of positioning and/or resizing lines as they are laid out.</li>
<li>New <a href="qml-qtquick-text.html#doLayout-method">doLayout()</a> method will trigger the text layout from Javascript.</li>
<li>New <a href="qml-qtquick-text.html#fontSizeMode-prop">fontSizeMode</a> property allows text to be fitted to the item size.</li>
<li>New <a href="qml-qtquick-text.html#minimumPixelSize-prop">minimumPixelSize</a> and <a href="qml-qtquick-text.html#minimumPointSize-prop">minimumPointSize</a> properties can be used to specify a lower bound when auto-fitting.</li>
</ul>
</li>
<li><a href="qml-qtquick-textedit.html">TextEdit</a> only:<ul>
<li>New <a href="qml-qtquick-textedit.html#baseUrl-prop">baseUrl</a> property specified the base URL used to resolve relative URLs within the text.</li>
</ul>
</li>
<li><a href="qml-qtquick-textinput.html">TextInput</a> only:<ul>
<li>New <a href="qml-qtquick-textinput.html#wrapMode-prop">wrapMode</a> property sets the text wrapping mode.</li>
<li>New <a href="qml-qtquick-textinput.html#horizontalAlignment-prop">horizontalAlignment</a> and <a href="qml-qtquick-textinput.html#verticalAlignment-prop">verticalAlignment</a> properties.</li>
<li>New <a href="qml-qtquick-textinput.html#length-prop">length</a> property provides the total number of text characters.</li>
<li>New <a href="qml-qtquick-textinput.html#persistentSelection-prop">persistentSelection</a> property enables the text selection to persist when the window loses focus.</li>
<li><a href="qml-qtquick-textinput.html#positionAt-method">positionAt()</a> method now takes a y parameter.</li>
</ul>
</li>
</ul>
<a name="user-input"></a>
<h3>User Input</h3>
<ul>
<li>New <a href="qml-qtquick-multipointtoucharea.html">MultiPointTouchArea</a> type processes multi-point touches and provides information on touch points including position, pressure and velocity. Touch point data is provided by the new <a href="qml-qtquick-touchpoint.html">TouchPoint</a> type.</li>
<li>New <a href="qml-qtquick-droparea.html">DropArea</a> type provides more advanced drag and drop functionality.</li>
<li><a href="qml-qtquick-mousearea.html">MouseArea</a>:<ul>
<li>Wheel events are now supported; events are provided through the new <a href="qml-qtquick-wheelevent.html">WheelEvent</a> type.</li>
<li>New <a href="qml-qtquick-mousearea.html#propagateComposedEvents-prop">propagateComposedEvents</a> property sets whether composed events are propagated to other mouse areas. If this property is true and the l{<a href="qml-qtquick-mousearea.html#onClicked-signal">MouseArea::onClicked</a>}{clicked}, <a href="qml-qtquick-mousearea.html#onDoubleClicked-signal">doubleClicked</a> or <a href="qml-qtquick-mousearea.html#onPressAndHold-signal">pressAndHold</a> handlers reject a mouse event, the event will be propagated to overlapping <a href="qml-qtquick-mousearea.html">MouseArea</a> items in the same area that are lower in the stacking order.</li>
<li>New <a href="qml-qtquick-mousearea.html#cursorShape-prop">cursorShape</a> property controls the cursor shape.</li>
</ul>
</li>
</ul>
<a name="specialised-containers"></a>
<h3>Specialised Containers</h3>
<ul>
<li>Flickable:<ul>
<li>New <a href="qml-qtquick-flickable.html#rebound-prop">rebound</a> property specifies the transition to be applied when a flickable snaps back to its bounds.</li>
<li>New <a href="qml-qtquick-flickable.html#topMargin-prop">topMargin</a>, <a href="qml-qtquick-flickable.html#bottomMargin-prop">bottomMargin</a>, <a href="qml-qtquick-flickable.html#leftMargin-prop">leftMargin</a>, <a href="qml-qtquick-flickable.html#rightMargin-prop">rightMargin</a> allow extra margin space to be specified for a flickable. This can be used, for example, to implement pull-to-refresh functionality for a list.</li>
<li>New <a href="qml-qtquick-flickable.html#originX-prop">originX</a> and <a href="qml-qtquick-flickable.html#originY-prop">originY</a> properties provide the top left position of the content item.</li>
<li>New <a href="qml-qtquick-flickable.html#dragging-prop">dragging</a>, <a href="qml-qtquick-flickable.html#draggingHorizontally-prop">draggingHorizontally</a> and <a href="qml-qtquick-flickable.html#draggingVertically-prop">draggingVertically</a> properties provide information on whether a flickable is currently being dragged.</li>
<li>New <a href="qml-qtquick-flickable.html#flick-method">flick()</a> method flicks the view with a specific velocity.</li>
<li>New <a href="qml-qtquick-flickable.html#cancelFlick-method">cancelFlick()</a> method stops any current flicking movement.</li>
</ul>
</li>
</ul>
<a name="positioners-row-column-grid-flow-types"></a>
<h3>Positioners (Row, Column, Grid, Flow types):</h3>
<ul>
<li>Changes common to <a href="qml-qtquick-row.html">Row</a>, <a href="qml-qtquick-column.html">Column</a>, <a href="qml-qtquick-grid.html">Grid</a> and <a href="qml-qtquick-flow.html">Flow</a>:<ul>
<li>The <tt>add</tt> and <tt>move</tt> transitions can access a new <a href="qml-qtquick-viewtransition.html">ViewTransition</a> attached property (see the <a href="qml-qtquick-viewtransition.html">ViewTransition</a> documentation for examples) and can now animate arbitrary item properties (instead of being restricted to animating an item's position).</li>
<li>New <tt>effectiveLayoutDirection</tt> property provides the read-only actual layout direction of a positioner.</li>
<li>New <a href="qml-qtquick-positioner.html">Positioner</a> type provides <tt>index</tt>, <tt>isFirstItem</tt> and <tt>isLastItem</tt> attached properties for items within positioners.</li>
<li>All <tt>spacing</tt> properties on positioners now use real numbers instead of integers.</li>
</ul>
</li>
<li>Grid only:<ul>
<li>New <a href="qml-qtquick-grid.html#rowSpacing-prop">rowSpacing</a> and <a href="qml-qtquick-grid.html#columnSpacing-prop">columnSpacing</a> properties.</li>
</ul>
</li>
</ul>
<a name="models-and-views"></a>
<h3>Models and Views</h3>
<ul>
<li>Any delegate of a view that uses a <a href="qtquick-modelviewsdata-cppmodels.html#qabstractitemmodel">QAbstractItemModel</a>-derived model type can use the syntax <tt>model.<role> = <newDataValue></tt> to modify the data for a particular role. (Previously, the <tt>model.<role></tt> syntax was only available for reading, not writing to, a role value.)</li>
<li><a href="qtquick-modelviewsdata-modelview.html#listmodel">ListModel</a>:<ul>
<li>By default, roles can no longer change type during a model's lifetime. The new dynamicRoles property can be set to restore the original (less performant) behavior.</li>
</ul>
</li>
<li>VisualDataModel:<ul>
<li>Now has features to filter the items to be displayed in a view. This is supported by the new groups, filterOnGroup, items and persistedItems properties.</li>
</ul>
</li>
<li>Changes common to both <a href="qml-qtquick-listview.html">ListView</a> and <a href="qml-qtquick-gridview.html">GridView</a>:<ul>
<li>New transition support for animating the adding, removing and moving of items in a <a href="qml-qtquick-listview.html">ListView</a> or <a href="qml-qtquick-gridview.html">GridView</a>. See the <a href="qml-qtquick-viewtransition.html">ViewTransition</a> documentation for details.</li>
<li>New <tt>verticalLayoutDirection</tt> property enables items to be laid out from bottom-to-top using the new <tt>BottomToTop</tt> enumeration value.</li>
<li>New <tt>headerItem</tt> and <tt>footerItem</tt> properties provide access to the instantiated header and footer items.</li>
<li>The <tt>cacheBuffer</tt> property now has a non-zero default.</li>
<li>Delegates in the cache buffer are now created asynchronously.</li>
<li>Setting a <tt>RightToLeft</tt> layout now also reverses the <tt>preferredHighlightBegin</tt> and <tt>preferredHighlightEnd</tt>.</li>
<li>If the model is changed after the component is completed, currentIndex is reset to 0.</li>
</ul>
</li>
<li><a href="qml-qtquick-listview.html">ListView</a> only:<ul>
<li>New <a href="qml-qtquick-listview.html#section.labelPositioning-prop">section.labelPositioning</a> property can fix the current section label to the start of the view, and the next section label to the end of the view, to prevent labels from scrolling while section items are still in view.</li>
<li><tt>highlightMoveSpeed</tt> and <tt>highlightResizeSpeed</tt> have been renamed to <a href="qml-qtquick-listview.html#highlightMoveVelocity-prop">highlightMoveVelocity</a> and <a href="qml-qtquick-listview.html#highlightResizeVelocity-prop">highlightResizeVelocity</a>.</li>
</ul>
</li>
<li><a href="qml-qtquick-gridview.html">GridView</a> only:<ul>
<li><a href="qml-qtquick-gridview.html#cellWidth-prop">cellWidth</a> and <a href="qml-qtquick-gridview.html#cellHeight-prop">cellHeight</a> now use real numbers instead of integers.</li>
</ul>
</li>
<li><a href="qml-qtquick-pathview.html">PathView</a>:<ul>
<li>New <a href="qml-qtquick-pathview.html#currentItem-prop">currentItem</a> property holds the current item in the view.</li>
<li>New <a href="qml-qtquick-pathview.html#maximumFlickVelocity-prop">maximumFlickVelocity</a> property controls the maximum flick velocity of the view.</li>
<li>New <a href="qml-qtquick-pathview.html#snapMode-prop">snapMode</a> property controls the snap model when flicking between items</li>
<li>If the model is changed after the component is completed, the offset and currentIndex are reset to 0.</li>
<li>New <a href="qml-qtquick-pathview.html#positionViewAtIndex-method">positionViewAtIndex()</a> function allows the view to be moved to display the specified index.</li>
<li>New <a href="qml-qtquick-pathview.html#indexAt-method">indexAt()</a> and <a href="qml-qtquick-pathview.html#itemAt-method">itemAt()</a> functions return the index or item at a specified point in the view.</li>
</ul>
</li>
</ul>
<a name="utility-types"></a>
<h3>Utility types</h3>
<ul>
<li>New <a href="qml-qtquick-accessible.html">Accessible</a> attached property for implementing accessibility features in QML applications.</li>
<li><a href="qml-qtquick-loader.html">Loader</a>:<ul>
<li>New <a href="qml-qtquick-loader.html#asynchronous-prop">asynchronous</a> property allows components to be instantiated with lower chance of blocking. If source is used with <i>asynchonous: true</i> the component will be compiled in a background thread.</li>
<li>New <a href="qml-qtquick-loader.html#active-prop">active</a> property can delay instantiation of a <a href="qml-qtquick-loader.html">Loader</a> object's <a href="qml-qtquick-loader.html#item-prop">item</a>.</li>
<li>New <a href="qml-qtquick-loader.html#setSource-method">setSource()</a> method loads an object with specific initial property values, similar to Component::createObject().</li>
</ul>
</li>
<li>Binding:<ul>
<li>This type can now be used as a value source, and will also restore any previously set binding when its when clause becomes false.</li>
</ul>
</li>
</ul>
<a name="property-types"></a>
<h3>Property types</h3>
<p>Support for various math and geometry-related value types, including QVector2D, QVector3D, QVector4D, QMatrix4x4 and QQuaternion, as well as QColor and QFont, are now provided by <a href="qtquick-index.html">Qt Quick</a>. Properties of these types can be declared in QML documents via the property syntax where the type name is <tt>vector2d</tt>, <tt>vector3d</tt>, <tt>vector4d</tt>, <tt>matrix4x4</tt>, <tt>quaternion</tt>, <tt>color</tt> and <tt>font</tt> respectively.</p>
<p><a href="qtquick-index.html">Qt Quick</a> also provides implementation for the various value type factory or utility functions of the <tt>Qt</tt> object which return or operate on values of the above types. The functions are:</p>
<table class="generic">
<thead><tr class="qt-style"><th >Value type</th><th >Functions</th></tr></thead>
<tr valign="top" class="odd"><td >color</td><td >Qt.rgba(), Qt.hsla(), Qt.tint(), Qt.lighter(), Qt.darker(), Qt.colorEqual()</td></tr>
<tr valign="top" class="even"><td >font</td><td >Qt.<a href="qml-font.html">font</a>(), Qt.fontFamilies()</td></tr>
<tr valign="top" class="odd"><td >vector2d</td><td >Qt.<a href="qml-vector2d.html">vector2d</a>()</td></tr>
<tr valign="top" class="even"><td >vector3d</td><td >Qt.<a href="qml-vector3d.html">vector3d</a>()</td></tr>
<tr valign="top" class="odd"><td >vector4d</td><td >Qt.<a href="qml-vector4d.html">vector4d</a>()</td></tr>
<tr valign="top" class="even"><td >matrix4x4</td><td >Qt.<a href="qml-matrix4x4.html">matrix4x4</a>()</td></tr>
<tr valign="top" class="odd"><td >quaternion</td><td >Qt.<a href="qml-quaternion.html">quaternion</a>()</td></tr>
</table>
<p>The <tt>Qt.rgba()</tt>, <tt>Qt.hsla()</tt>, <tt>Qt.tint()</tt>, <tt>Qt.lighter()</tt>, <tt>Qt.darker()</tt> and <tt>Qt.fontFamilies()</tt> functions already existed in QtDeclarative prior to <a href="qtquick-index.html">Qt Quick 2</a>; the other functions are all new in <a href="qtquick-index.html">Qt Quick 2</a>.</p>
<a name="qt-5-0-additional-qml-modules"></a>
<h2>Qt 5.0 - Additional QML Modules</h2>
<a name="qtquick-particles"></a>
<h3>QtQuick.Particles</h3>
<p>This new module provides particle system support for creating a variety of 2D particle systems. See the <a href="qtquick-particles-qmlmodule.html">QtQuick.Particles</a> documentation for comprehensive details.</p>
<p>This obsoletes the experimental <tt>Qt.labs.particles</tt> module.</p>
<a name="qtquick-window"></a>
<h3>QtQuick.Window</h3>
<p>This new module contains the <a href="qml-qtquick-window-window.html">Window</a> type for creating a basic window and the <a href="qml-qtquick-window-screen.html">Screen</a> type for accessing a screen's resolution and other details. See the QtQuick.Window documentation for comprehensive details.</p>
<a name="qtquick-xmllistmodel"></a>
<h3>QtQuick.XmlListModel</h3>
<p>This new module contains <a href="qml-qtquick-xmllistmodel-xmllistmodel.html">XmlListModel</a> and associated types, which were previously in the <tt>QtQuick</tt> module. See the <a href="qtquick-xmllistmodel-qmlmodule.html">QtQuick.XmlListModel</a> documentation for details.</p>
<a name="qtquick-localstorage"></a>
<h3>QtQuick.LocalStorage</h3>
<p>This new module provides access to the SQL Local Storage API that was previously accessible from the QML Global Object. See the <a href="qtquick-localstorage-qmlmodule.html">QtQuick.LocalStorage</a> documentation for details.</p>
</div>
<!-- @@@qtquick-releasenotes.html -->
</div>
</div>
</div>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2013 Digia Plc and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.<br> The documentation provided herein is licensed under the terms of the <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation License version 1.3</a> as published by the Free Software Foundation.<br> Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. </p>
</div>
</body>
</html>
|