Qt 4.8: What's New in Qt Quick

Qt Reference Documentation

- Qt 4.8
- ALL VERSIONS

- A
- A
- A
- Print

# What's New in Qt Quick

## Qt 4.7.4 includes QtQuick 1.1

QtQuick 1.1 is a minor feature update. import QtQuick 1.1 to use the new features.

### PinchArea

PinchArea provides support for the common two finger pinch gesture.

### LayoutMirroring attached property

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.

### Text

Added the following properties:

- lineHeight
- lineHeightMode
- lineCount
- maximumLineCount
- truncated

horizontalAlignment now accepts Text.AlignJustify alignment mode.

### TextEdit

Added the following properties, methods and signal handlers:

- canPaste
- lineCount
- inputMethodComposing
- mouseSelectionMode
- deselect()
- isRightToLeft()
- moveCursorSelection() to enable selection by word
- onLinkActivated

### TextInput

Added the following properties and methods:

- canPaste
- inputMethodComposing
- mouseSelectionMode
- deselect()
- isRightToLeft()
- moveCursorSelection() to enable selection by word

### Image, BorderImage and AnimatedImage

Added the following properties:

- cache
- mirror

### Item

Added the following properties:

- implicitWidth and implicitHeight

### Flickable

Added the following methods:

- resizeContent()
- returnToBounds()

### MouseArea

Added the following property:

- preventStealing

### ListView and GridView

Added the following properties and methods:

- layoutDirection
- positionViewAtBeginning()
- positionViewAtEnd()

### Flow, Grid and Row

Added the following property:

- layoutDirection

### Repeater

Added the following methods and signal handlers:

- onItemAdded
- onItemRemoved
- itemAt()

### Component

- The createObject() method now accepts a map of initial property values for the created object.

### Qt

- Added the Qt.application object to hold generic global application properties.

### Other changes

- Functions can be assigned to properties from JavaScript to create property bindings.
- QtQuick now supports Right to Left layout in positioners, views, anchors and text elements.

## Qt 4.7.1

### QtQuick namespace

In prior Qt releases, all the Qt Quick elements were available in the Qt namespace. Starting with Qt 4.7.1, the elements are also available in the 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 import Qt 4.7, just replace it with import QtQuick 1.0, like this:

     import QtQuick 1.0

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

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.