Qt 4.8
Translate Class Reference

The Translate object provides a way to move an Item without changing its x or y properties. More...

Detailed Description

The Translate object provides a way to move an Item without changing its x or y properties.

Since
4.7

The Translate object provides independent control over position in addition to the Item's x and y properties.

The following example moves the Y axis of the Rectangle elements while still allowing the Row element to lay the items out as if they had not been transformed:

import QtQuick 1.0
Row {
width: 100; height: 100
color: "blue"
transform: Translate { y: 20 }
}
width: 100; height: 100
color: "red"
transform: Translate { y: -20 }
}
}
translate.png

The documentation for this class was generated from the following file: